diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-05-16 20:14:22 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-05-16 20:14:22 +0200 |
| commit | 0f03cc378e6ce48f17a20e409f93bfc11345a6ed (patch) | |
| tree | f4768c6fe96e1ac2a9c5833dee897924300d4a45 /src/blind-make-kernel.c | |
| parent | Add blind-tempral-mean (diff) | |
| download | blind-0f03cc378e6ce48f17a20e409f93bfc11345a6ed.tar.gz blind-0f03cc378e6ce48f17a20e409f93bfc11345a6ed.tar.bz2 blind-0f03cc378e6ce48f17a20e409f93bfc11345a6ed.tar.xz | |
Fix errors and warnings and make the code cleaner
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/blind-make-kernel.c')
| -rw-r--r-- | src/blind-make-kernel.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/blind-make-kernel.c b/src/blind-make-kernel.c index 67f8691..4253a68 100644 --- a/src/blind-make-kernel.c +++ b/src/blind-make-kernel.c @@ -1,9 +1,5 @@ /* See LICENSE file for copyright and license details. */ -#include "stream.h" -#include "util.h" - -#include <ctype.h> -#include <string.h> +#include "common.h" USAGE("[-d denominator] ... [-nxyza] [-- value ...] ...") @@ -58,7 +54,7 @@ static double * read_matrix_stdin(size_t *rows, size_t *cols) { char *line = NULL, *p, *q; - size_t size = 0, col; + size_t size = 0, col = 0; double *kernel = NULL; ssize_t len; *rows = *cols = 0; |
