aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1996-07-15 21:26:39 +0000
committerKarl Heuer1996-07-15 21:26:39 +0000
commitc275f129ae7fc59bf899d0f3ddca4b2a2e3c2dd3 (patch)
tree16f23649b300b4fbf2da4db91ff65cfc3ef9ef0a
parent6ce375fa38982adbb941b11dd596e878fbc8bbb0 (diff)
downloademacs-c275f129ae7fc59bf899d0f3ddca4b2a2e3c2dd3.tar.gz
emacs-c275f129ae7fc59bf899d0f3ddca4b2a2e3c2dd3.zip
[__GNU_LIBRARY__]: Use size_t for fromlen.
-rw-r--r--lib-src/emacsserver.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib-src/emacsserver.c b/lib-src/emacsserver.c
index 05449bf6105..3d4d4cf9937 100644
--- a/lib-src/emacsserver.c
+++ b/lib-src/emacsserver.c
@@ -81,10 +81,16 @@ extern int errno;
81#define FD_ZERO(p) (*(p) = 0) 81#define FD_ZERO(p) (*(p) = 0)
82#endif /* no FD_SET */ 82#endif /* no FD_SET */
83 83
84int
84main () 85main ()
85{ 86{
86 char system_name[32]; 87 char system_name[32];
87 int s, infd, fromlen; 88 int s, infd;
89#ifdef __GNU_LIBRARY__
90 size_t fromlen;
91#else
92 int fromlen;
93#endif
88 struct sockaddr_un server, fromunix; 94 struct sockaddr_un server, fromunix;
89 char *homedir; 95 char *homedir;
90 char *str, string[BUFSIZ], code[BUFSIZ]; 96 char *str, string[BUFSIZ], code[BUFSIZ];