kopia lustrzana https://gitlab.com/sane-project/backends
Clean up compiler warnings and fix (minor) memory leak
rodzic
d794b8afa0
commit
f8dead9c20
|
@ -211,6 +211,12 @@ struct pixmap {
|
|||
unsigned char *planes;
|
||||
};
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define UNUSEDARG __attribute__ ((unused))
|
||||
#else
|
||||
#define UNUSEDARG
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Rotations
|
||||
*/
|
||||
|
@ -245,6 +251,8 @@ extern char *__progname; /* Defined in /usr/lib/crt0.o */
|
|||
|
||||
FILE * sanei_config_open (const char *filename);
|
||||
|
||||
char *sanei_config_read (char *str, int n, FILE * stream);
|
||||
|
||||
static int init_dc20 (char *, speed_t);
|
||||
|
||||
static void close_dc20 (int);
|
||||
|
@ -267,3 +275,4 @@ static int save_pixmap (struct pixmap *p, char *name, int orientation, int forma
|
|||
|
||||
static int comet_to_pixmap (unsigned char *, struct pixmap *);
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue