Mercurial > hg > xemacs-beta
comparison lib-src/gnuserv.c @ 2286:04bc9d2f42c7
[xemacs-hg @ 2004-09-20 19:18:55 by james]
Mark all unused parameters as unused. Also eliminate some unneeded local
variables.
author | james |
---|---|
date | Mon, 20 Sep 2004 19:20:08 +0000 |
parents | 943eaba38521 |
children | e6508b64ee08 061f4f90f874 |
comparison
equal
deleted
inserted
replaced
2285:914c5afaac33 | 2286:04bc9d2f42c7 |
---|---|
57 | 57 |
58 #ifdef HAVE_STRING_H | 58 #ifdef HAVE_STRING_H |
59 #include <string.h> | 59 #include <string.h> |
60 #endif /* HAVE_STRING_H */ | 60 #endif /* HAVE_STRING_H */ |
61 | 61 |
62 #include "compiler.h" | |
63 | |
62 #if !defined(SYSV_IPC) && !defined(UNIX_DOMAIN_SOCKETS) && \ | 64 #if !defined(SYSV_IPC) && !defined(UNIX_DOMAIN_SOCKETS) && \ |
63 !defined(INTERNET_DOMAIN_SOCKETS) | 65 !defined(INTERNET_DOMAIN_SOCKETS) |
64 main () | 66 int main () |
65 { | 67 { |
66 fprintf (stderr,"Sorry, the Emacs server is only supported on systems that have\n"); | 68 fprintf (stderr,"Sorry, the Emacs server is only supported on systems that have\n"); |
67 fprintf (stderr,"Unix Domain sockets, Internet Domain sockets or System V IPC\n"); | 69 fprintf (stderr,"Unix Domain sockets, Internet Domain sockets or System V IPC\n"); |
68 exit (1); | 70 exit (1); |
69 } /* main */ | 71 } /* main */ |
853 } /* handle_unix_request */ | 855 } /* handle_unix_request */ |
854 #endif /* UNIX_DOMAIN_SOCKETS */ | 856 #endif /* UNIX_DOMAIN_SOCKETS */ |
855 | 857 |
856 | 858 |
857 int | 859 int |
858 main (int argc, char *argv[]) | 860 main (int UNUSED (argc), char *argv[]) |
859 { | 861 { |
860 int chan; /* temporary channel number */ | 862 int chan; /* temporary channel number */ |
861 #ifdef SYSV_IPC | 863 #ifdef SYSV_IPC |
862 struct msgbuf *msgp; /* message buffer */ | 864 struct msgbuf *msgp; /* message buffer */ |
863 #else | 865 #else |