aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Janík2001-12-30 22:09:01 +0000
committerPavel Janík2001-12-30 22:09:01 +0000
commit80b2cbf2639beea20ab88681feb0a5972fe3e896 (patch)
tree59ad6df76ad739ca1d32fda210b76989c9621722
parent9d8f0a614a1f6719f182c7ebdb59319487aeb087 (diff)
downloademacs-80b2cbf2639beea20ab88681feb0a5972fe3e896.tar.gz
emacs-80b2cbf2639beea20ab88681feb0a5972fe3e896.zip
Remove unnecessary whitespaces.
-rw-r--r--lib-src/hexl.c2
-rw-r--r--lib-src/pop.c30
-rw-r--r--lib-src/profile.c6
-rw-r--r--lib-src/sorted-doc.c8
-rw-r--r--lib-src/test-distrib.c2
5 files changed, 24 insertions, 24 deletions
diff --git a/lib-src/hexl.c b/lib-src/hexl.c
index 9c40b0e3d94..cbab66a2a17 100644
--- a/lib-src/hexl.c
+++ b/lib-src/hexl.c
@@ -73,7 +73,7 @@ main (argc, argv)
73 ** <filename> dump filename 73 ** <filename> dump filename
74 ** - (as filename == stdin) 74 ** - (as filename == stdin)
75 */ 75 */
76 76
77 while (*argv && *argv[0] == '-' && (*argv)[1]) 77 while (*argv && *argv[0] == '-' && (*argv)[1])
78 { 78 {
79 /* A switch! */ 79 /* A switch! */
diff --git a/lib-src/pop.c b/lib-src/pop.c
index 2cf8f9243f4..e27d5821388 100644
--- a/lib-src/pop.c
+++ b/lib-src/pop.c
@@ -296,7 +296,7 @@ pop_open (host, username, password, flags)
296 free ((char *) server); 296 free ((char *) server);
297 return (0); 297 return (0);
298 } 298 }
299 299
300 server->file = sock; 300 server->file = sock;
301 server->data = 0; 301 server->data = 0;
302 server->buffer_index = 0; 302 server->buffer_index = 0;
@@ -367,7 +367,7 @@ pop_stat (server, count, size)
367 strcpy (pop_error, "In multi-line query in pop_stat"); 367 strcpy (pop_error, "In multi-line query in pop_stat");
368 return (-1); 368 return (-1);
369 } 369 }
370 370
371 if (sendline (server, "STAT") || (pop_getline (server, &fromserver) < 0)) 371 if (sendline (server, "STAT") || (pop_getline (server, &fromserver) < 0))
372 return (-1); 372 return (-1);
373 373
@@ -387,7 +387,7 @@ pop_stat (server, count, size)
387 } 387 }
388 388
389 *count = atoi (&fromserver[4]); 389 *count = atoi (&fromserver[4]);
390 390
391 fromserver = index (&fromserver[4], ' '); 391 fromserver = index (&fromserver[4], ' ');
392 if (! fromserver) 392 if (! fromserver)
393 { 393 {
@@ -896,7 +896,7 @@ pop_last (server)
896 popserver server; 896 popserver server;
897{ 897{
898 char *fromserver; 898 char *fromserver;
899 899
900 if (server->in_multi) 900 if (server->in_multi)
901 { 901 {
902 strcpy (pop_error, "In multi-line query in pop_last"); 902 strcpy (pop_error, "In multi-line query in pop_last");
@@ -1009,7 +1009,7 @@ static int have_winsock = 0;
1009 * Arguments: 1009 * Arguments:
1010 * host The host to which to connect. 1010 * host The host to which to connect.
1011 * flags Option flags. 1011 * flags Option flags.
1012 * 1012 *
1013 * Return value: A file descriptor indicating the connection, or -1 1013 * Return value: A file descriptor indicating the connection, or -1
1014 * indicating failure, in which case an error has been copied 1014 * indicating failure, in which case an error has been copied
1015 * into pop_error. 1015 * into pop_error.
@@ -1112,7 +1112,7 @@ socket_connection (host, flags)
1112 strncat (pop_error, strerror (errno), 1112 strncat (pop_error, strerror (errno),
1113 ERROR_MAX - sizeof (POP_SOCKET_ERROR)); 1113 ERROR_MAX - sizeof (POP_SOCKET_ERROR));
1114 return (-1); 1114 return (-1);
1115 1115
1116 } 1116 }
1117 1117
1118 while (*hostent->h_addr_list) 1118 while (*hostent->h_addr_list)
@@ -1125,7 +1125,7 @@ socket_connection (host, flags)
1125 } 1125 }
1126 1126
1127#define CONNECT_ERROR "Could not connect to POP server: " 1127#define CONNECT_ERROR "Could not connect to POP server: "
1128 1128
1129 if (! *hostent->h_addr_list) 1129 if (! *hostent->h_addr_list)
1130 { 1130 {
1131 CLOSESOCKET (sock); 1131 CLOSESOCKET (sock);
@@ -1133,7 +1133,7 @@ socket_connection (host, flags)
1133 strncat (pop_error, strerror (errno), 1133 strncat (pop_error, strerror (errno),
1134 ERROR_MAX - sizeof (CONNECT_ERROR)); 1134 ERROR_MAX - sizeof (CONNECT_ERROR));
1135 return (-1); 1135 return (-1);
1136 1136
1137 } 1137 }
1138 1138
1139#ifdef KERBEROS 1139#ifdef KERBEROS
@@ -1157,7 +1157,7 @@ socket_connection (host, flags)
1157 1157
1158 if ((rem = krb5_auth_con_init (kcontext, &auth_context))) 1158 if ((rem = krb5_auth_con_init (kcontext, &auth_context)))
1159 goto krb5error; 1159 goto krb5error;
1160 1160
1161 if (rem = krb5_cc_default (kcontext, &ccdef)) 1161 if (rem = krb5_cc_default (kcontext, &ccdef))
1162 goto krb5error; 1162 goto krb5error;
1163 1163
@@ -1215,7 +1215,7 @@ socket_connection (host, flags)
1215 CLOSESOCKET (sock); 1215 CLOSESOCKET (sock);
1216 return (-1); 1216 return (-1);
1217 } 1217 }
1218#else /* ! KERBEROS5 */ 1218#else /* ! KERBEROS5 */
1219 ticket = (KTEXT) malloc (sizeof (KTEXT_ST)); 1219 ticket = (KTEXT) malloc (sizeof (KTEXT_ST));
1220 realhost = strdup (hostent->h_name); 1220 realhost = strdup (hostent->h_name);
1221 rem = krb_sendauth (0L, sock, ticket, "pop", realhost, 1221 rem = krb_sendauth (0L, sock, ticket, "pop", realhost,
@@ -1285,7 +1285,7 @@ pop_getline (server, line)
1285 1285
1286 found = server->buffer_index; 1286 found = server->buffer_index;
1287 data_used = (cp + 2) - server->buffer - found; 1287 data_used = (cp + 2) - server->buffer - found;
1288 1288
1289 *cp = '\0'; /* terminate the string to be returned */ 1289 *cp = '\0'; /* terminate the string to be returned */
1290 server->data -= data_used; 1290 server->data -= data_used;
1291 server->buffer_index += data_used; 1291 server->buffer_index += data_used;
@@ -1354,7 +1354,7 @@ pop_getline (server, line)
1354 char *cp; 1354 char *cp;
1355 server->data += ret; 1355 server->data += ret;
1356 server->buffer[server->data] = '\0'; 1356 server->buffer[server->data] = '\0';
1357 1357
1358 cp = find_crlf (server->buffer + search_offset, 1358 cp = find_crlf (server->buffer + search_offset,
1359 server->data - search_offset); 1359 server->data - search_offset);
1360 if (cp) 1360 if (cp)
@@ -1461,7 +1461,7 @@ fullwrite (fd, buf, nbytes)
1461 * 1461 *
1462 * Arguments: 1462 * Arguments:
1463 * server The server to read from. 1463 * server The server to read from.
1464 * 1464 *
1465 * Returns: 0 for success, else for failure and puts error in pop_error. 1465 * Returns: 0 for success, else for failure and puts error in pop_error.
1466 * 1466 *
1467 * Side effects: On failure, may make the connection unusable. 1467 * Side effects: On failure, may make the connection unusable.
@@ -1492,7 +1492,7 @@ getok (server)
1492 pop_trash (server); 1492 pop_trash (server);
1493 return (-1); 1493 return (-1);
1494 } 1494 }
1495} 1495}
1496 1496
1497#if 0 1497#if 0
1498/* 1498/*
@@ -1538,7 +1538,7 @@ gettermination (server)
1538 * Changes made to the maildrop since the session was started (or 1538 * Changes made to the maildrop since the session was started (or
1539 * since the last pop_reset) may be lost. 1539 * since the last pop_reset) may be lost.
1540 */ 1540 */
1541void 1541void
1542pop_close (server) 1542pop_close (server)
1543 popserver server; 1543 popserver server;
1544{ 1544{
diff --git a/lib-src/profile.c b/lib-src/profile.c
index 9c3ebcef539..e2fa4793b63 100644
--- a/lib-src/profile.c
+++ b/lib-src/profile.c
@@ -63,7 +63,7 @@ get_time ()
63} 63}
64 64
65#if ! defined (HAVE_GETTIMEOFDAY) && defined (HAVE_TIMEVAL) 65#if ! defined (HAVE_GETTIMEOFDAY) && defined (HAVE_TIMEVAL)
66 66
67/* ARGSUSED */ 67/* ARGSUSED */
68gettimeofday (tp, tzp) 68gettimeofday (tp, tzp)
69 struct timeval *tp; 69 struct timeval *tp;
@@ -71,12 +71,12 @@ gettimeofday (tp, tzp)
71{ 71{
72 extern long time (); 72 extern long time ();
73 73
74 tp->tv_sec = time ((long *)0); 74 tp->tv_sec = time ((long *)0);
75 tp->tv_usec = 0; 75 tp->tv_usec = 0;
76 if (tzp != 0) 76 if (tzp != 0)
77 tzp->tz_minuteswest = -1; 77 tzp->tz_minuteswest = -1;
78} 78}
79 79
80#endif 80#endif
81 81
82int 82int
diff --git a/lib-src/sorted-doc.c b/lib-src/sorted-doc.c
index d474924cf18..185295a9294 100644
--- a/lib-src/sorted-doc.c
+++ b/lib-src/sorted-doc.c
@@ -1,6 +1,6 @@
1/* Give this program DOC-mm.nn.oo as standard input and it outputs to 1/* Give this program DOC-mm.nn.oo as standard input and it outputs to
2 standard output a file of texinfo input containing the doc strings. 2 standard output a file of texinfo input containing the doc strings.
3 3
4 Copyright (C) 1989, 1992, 1994, 1996, 1999, 2000, 2001 4 Copyright (C) 1989, 1992, 1994, 1996, 1999, 2000, 2001
5 Free Software Foundation Inc. 5 Free Software Foundation Inc.
6 6
@@ -121,7 +121,7 @@ char *states[] =
121{ 121{
122 "WAITING", "BEG_NAME", "NAME_GET", "BEG_DESC", "DESC_GET" 122 "WAITING", "BEG_NAME", "NAME_GET", "BEG_DESC", "DESC_GET"
123}; 123};
124 124
125int 125int
126main () 126main ()
127{ 127{
@@ -133,7 +133,7 @@ main ()
133 133
134 DOCSTR *docs; /* chain of allocated DOCSTRS */ 134 DOCSTR *docs; /* chain of allocated DOCSTRS */
135 char buf[512]; /* line buffer */ 135 char buf[512]; /* line buffer */
136 136
137 while (1) /* process one char at a time */ 137 while (1) /* process one char at a time */
138 { 138 {
139 /* this char from the DOCSTR file */ 139 /* this char from the DOCSTR file */
@@ -181,7 +181,7 @@ main ()
181 bp = buf; 181 bp = buf;
182 state = DESC_GET; 182 state = DESC_GET;
183 } 183 }
184 184
185 /* process gets */ 185 /* process gets */
186 186
187 if (state == NAME_GET || state == DESC_GET) 187 if (state == NAME_GET || state == DESC_GET)
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c
index 7e148f48bb5..973d1104393 100644
--- a/lib-src/test-distrib.c
+++ b/lib-src/test-distrib.c
@@ -50,7 +50,7 @@ This file is read by the `test-distribution' program.\n\
50If you change it, you will make that program fail.\n"; 50If you change it, you will make that program fail.\n";
51 51
52char buf[300]; 52char buf[300];
53 53
54/* Like `read' but keeps trying until it gets SIZE bytes or reaches eof. */ 54/* Like `read' but keeps trying until it gets SIZE bytes or reaches eof. */
55int 55int
56cool_read (fd, buf, size) 56cool_read (fd, buf, size)