Clean up compiler warnings and fix (minor) memory leak

DEVEL_2_0_BRANCH-1
Peter Fales 2001-05-08 03:30:34 +00:00
rodzic d794b8afa0
commit f8dead9c20
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -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 *);