comparison lib-src/gnuclient.c @ 12:bcdc7deadc19 r19-15b7

Import from CVS: tag r19-15b7
author cvs
date Mon, 13 Aug 2007 08:48:16 +0200
parents 376386a54a3c
children ec9a17fef872
comparison
equal deleted inserted replaced
11:91ffe8bd52e4 12:bcdc7deadc19
50 #include <sys/types.h> 50 #include <sys/types.h>
51 #include <unistd.h> 51 #include <unistd.h>
52 52
53 #if !defined(SYSV_IPC) && !defined(UNIX_DOMAIN_SOCKETS) && \ 53 #if !defined(SYSV_IPC) && !defined(UNIX_DOMAIN_SOCKETS) && \
54 !defined(INTERNET_DOMAIN_SOCKETS) 54 !defined(INTERNET_DOMAIN_SOCKETS)
55 main () 55 int
56 main (int argc, char *argv[])
56 { 57 {
57 fprintf (stderr, "Sorry, the Emacs server is only " 58 fprintf (stderr, "Sorry, the Emacs server is only "
58 "supported on systems that have\n"); 59 "supported on systems that have\n");
59 fprintf (stderr, "Unix Domain sockets, Internet Domain " 60 fprintf (stderr, "Unix Domain sockets, Internet Domain "
60 "sockets or System V IPC.\n"); 61 "sockets or System V IPC.\n");
124 125
125 strcat (fullpath,filename); 126 strcat (fullpath,filename);
126 127
127 } /* filename_expand */ 128 } /* filename_expand */
128 129
129 void 130 int
130 main (int argc, char **argv) 131 main (int argc, char *argv[])
131 { 132 {
132 int starting_line = 1; /* line to start editing at */ 133 int starting_line = 1; /* line to start editing at */
133 char command[MAXPATHLEN+50]; /* emacs command buffer */ 134 char command[MAXPATHLEN+50]; /* emacs command buffer */
134 char fullpath[MAXPATHLEN+1]; /* full pathname to file */ 135 char fullpath[MAXPATHLEN+1]; /* full pathname to file */
135 #ifndef GNUATTACH 136 #ifndef GNUATTACH
328 #else /* !SYSV_IPC */ 329 #else /* !SYSV_IPC */
329 if (connect_type != (int) CONN_IPC) 330 if (connect_type != (int) CONN_IPC)
330 disconnect_from_server (s, FALSE); 331 disconnect_from_server (s, FALSE);
331 #endif /* !SYSV_IPC */ 332 #endif /* !SYSV_IPC */
332 333
333 exit (0); 334 return 0;
334 335
335 } /* main */ 336 } /* main */
336 337
337 #endif /* SYSV_IPC || UNIX_DOMAIN_SOCKETS || INTERNET_DOMAIN_SOCKETS */ 338 #endif /* SYSV_IPC || UNIX_DOMAIN_SOCKETS || INTERNET_DOMAIN_SOCKETS */