From 865ad0d4911372b608917aa9d390112db59aa89c Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Sun, 16 Mar 2008 19:51:42 -0300 Subject: [PATCH] Compile warning fixes. Add prototype for function from libXfont and comment the source of the function. Don't redeclare FONT_t, TRANS_SERVER and TRANS_REOPEN as it is now defined as a compiler command line option. --- os/config.c | 3 +++ os/daemon.c | 2 +- os/xfstrans.c | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletions(-) diff --git a/os/config.c b/os/config.c index 4623390..13dadd4 100644 --- a/os/config.c +++ b/os/config.c @@ -68,6 +68,9 @@ in this Software without prior written authorization from The Open Group. #include #include "difs.h" +/* libXfont/src/bitmap/snfstr.h */ +extern void SnfSetFormat(int bit, int byte, int glyph, int scan); + static const char * const default_config_files[] = { #ifdef DEFAULT_CONFIG_FILE DEFAULT_CONFIG_FILE, diff --git a/os/daemon.c b/os/daemon.c index 2b23de3..da87b32 100644 --- a/os/daemon.c +++ b/os/daemon.c @@ -97,7 +97,7 @@ MySetsid(void) /* detach */ void -BecomeDaemon () +BecomeDaemon (void) { /* If our C library has the daemon() function, just use it. */ #ifdef HAS_DAEMON diff --git a/os/xfstrans.c b/os/xfstrans.c index 81ec773..d8b59f9 100644 --- a/os/xfstrans.c +++ b/os/xfstrans.c @@ -24,8 +24,14 @@ #include +#ifndef FONT_t #define FONT_t +#endif +#ifndef TRANS_REOPEN #define TRANS_REOPEN +#endif +#ifndef TRANS_SERVER #define TRANS_SERVER +#endif #include -- 1.5.3.2