From 114eeeb3aa515271231785f462f7f6e092d0ffdd Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Mon, 14 May 2001 07:18:25 +0000 Subject: [PATCH] Remove some compiler warnings. --- frontend/scanimage.c | 3 ++- tools/sane-find-scanner.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/scanimage.c b/frontend/scanimage.c index 1f5096590..a8c689209 100644 --- a/frontend/scanimage.c +++ b/frontend/scanimage.c @@ -101,6 +101,7 @@ static SANE_Word window_val[2]; static int window_val_user[2]; /* is width/height user-specified? */ static int accept_only_md5_auth = 0; +static void fetch_options (SANE_Device * device); static void auth_callback (SANE_String_Const resource, @@ -692,7 +693,7 @@ parse_vector (const SANE_Option_Descriptor * opt, const char *str, } } -void +static void fetch_options (SANE_Device * device) { const SANE_Option_Descriptor *opt; diff --git a/tools/sane-find-scanner.c b/tools/sane-find-scanner.c index 9d9410501..f432b4305 100644 --- a/tools/sane-find-scanner.c +++ b/tools/sane-find-scanner.c @@ -79,7 +79,7 @@ usage (char *msg) that SCSI generic was found, return 1. If SCSI generic is always available in your OS, return 1 */ -int +static int check_sg (void) { #if defined(__linux__) @@ -106,7 +106,7 @@ check_sg (void) return 1; /* Give up, and assume yes to avoid false negatives */ } -void +static void scanner_do_inquiry (unsigned char *buffer, int sfd) { size_t size; @@ -126,7 +126,7 @@ scanner_do_inquiry (unsigned char *buffer, int sfd) } -void +static void scanner_identify_scanner (unsigned char *buffer, int sfd, char *devicename) { unsigned char vendor[9];