summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/ps/main.c8
-rw-r--r--src/bin/raw/main.c3
2 files changed, 6 insertions, 5 deletions
diff --git a/src/bin/ps/main.c b/src/bin/ps/main.c
index 3caa615..a994ec2 100644
--- a/src/bin/ps/main.c
+++ b/src/bin/ps/main.c
@@ -210,7 +210,7 @@ main(int argc, char **argv)
int i;
int size_w = 0, size_h = 0;
int head_only = 0;
- int page = 0;
+ int page_nbr = 0;
if (argc < 2) return -1;
// file is ALWAYS first arg, other options come after
@@ -223,7 +223,7 @@ main(int argc, char **argv)
else if (!strcmp(argv[i], "-key"))
{
i++;
- page = atoi(argv[i]);
+ page_nbr = atoi(argv[i]);
i++;
}
else if (!strcmp(argv[i], "-opt-scale-down-by"))
@@ -248,11 +248,11 @@ main(int argc, char **argv)
D("_spectre_init_file\n");
D("dpi....: %f\n", dpi);
- D("page...: %d\n", page);
+ D("page...: %d\n", page_nbr);
timeout_init(10);
- if (!_spectre_init(file, page, size_w, size_h))
+ if (!_spectre_init(file, page_nbr, size_w, size_h))
return -1;
D("_spectre_init done\n");
diff --git a/src/bin/raw/main.c b/src/bin/raw/main.c
index 31626c2..98476f3 100644
--- a/src/bin/raw/main.c
+++ b/src/bin/raw/main.c
@@ -111,7 +111,8 @@ read_raw_header()
static int
read_raw_data()
{
- int ret, count;
+ int ret;
+ unsigned int count;
libraw_processed_image_t *image = NULL;
DATA8 *bufptr;
DATA32 *dataptr;