Mercurial > hg > xemacs-beta
comparison lib-src/pop.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 | bdfcf05f635b |
comparison
equal
deleted
inserted
replaced
2285:914c5afaac33 | 2286:04bc9d2f42c7 |
---|---|
42 #define RECV(s,buf,len,flags) read(s,buf,len) | 42 #define RECV(s,buf,len,flags) read(s,buf,len) |
43 #define SEND(s,buf,len,flags) write(s,buf,len) | 43 #define SEND(s,buf,len,flags) write(s,buf,len) |
44 #define CLOSESOCKET(s) close(s) | 44 #define CLOSESOCKET(s) close(s) |
45 #endif | 45 #endif |
46 #include "pop.h" | 46 #include "pop.h" |
47 #include "compiler.h" | |
47 | 48 |
48 #ifdef sun | 49 #ifdef sun |
49 #include <malloc.h> | 50 #include <malloc.h> |
50 #endif /* sun */ | 51 #endif /* sun */ |
51 | 52 |
948 * Return value: A file descriptor indicating the connection, or -1 | 949 * Return value: A file descriptor indicating the connection, or -1 |
949 * indicating failure, in which case an error has been copied | 950 * indicating failure, in which case an error has been copied |
950 * into pop_error. | 951 * into pop_error. |
951 */ | 952 */ |
952 static int | 953 static int |
953 socket_connection (char *host, int flags) | 954 socket_connection (char *host, |
955 #if defined (KERBEROS) || defined (HESIOD) | |
956 int flags | |
957 #else | |
958 int UNUSED (flags) | |
959 #endif | |
960 ) | |
954 { | 961 { |
955 struct hostent *hostent; | 962 struct hostent *hostent; |
956 struct servent *servent; | 963 struct servent *servent; |
957 struct sockaddr_in addr; | 964 struct sockaddr_in addr; |
958 char found_port = 0; | 965 char found_port = 0; |