diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-06-20 20:52:14 +0000 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-06-20 20:52:14 +0000 |
commit | d49491906774b0e3625bed37e2e401d3c9bae111 (patch) | |
tree | b929af83a1c74643a31a9f5a72a3bf73a0c1a4a5 | |
parent | 89f9f5b25d0395d0aaf7926aa918c7185b2be6e0 (diff) |
space fixes
-rw-r--r-- | man3/fmtmsg.3 | 2 | ||||
-rw-r--r-- | man3/getgrouplist.3 | 2 | ||||
-rw-r--r-- | man3/getsubopt.3 | 2 | ||||
-rw-r--r-- | man3/scandir.3 | 2 | ||||
-rw-r--r-- | man3/stdarg.3 | 4 | ||||
-rw-r--r-- | man3/strcat.3 | 2 | ||||
-rw-r--r-- | man3/strcpy.3 | 4 | ||||
-rw-r--r-- | man3/system.3 | 2 | ||||
-rw-r--r-- | man3/tsearch.3 | 2 | ||||
-rw-r--r-- | man7/epoll.7 | 4 |
10 files changed, 13 insertions, 13 deletions
diff --git a/man3/fmtmsg.3 b/man3/fmtmsg.3 index 1d99b2623..235a6ada9 100644 --- a/man3/fmtmsg.3 +++ b/man3/fmtmsg.3 @@ -245,7 +245,7 @@ main(void) err = fmtmsg(class, "util-linux:mount", MM_ERROR, "unknown mount option", "See mount(8).", "util-linux:mount:017"); - switch(err) { + switch (err) { case MM_OK: break; case MM_NOTOK: diff --git a/man3/getgrouplist.3 b/man3/getgrouplist.3 index 118b9cce9..ce963f2b7 100644 --- a/man3/getgrouplist.3 +++ b/man3/getgrouplist.3 @@ -69,7 +69,7 @@ main(void) getgrouplist(user, pw->pw_gid, groups, &ng); } - for(i = 0; i < ng; i++) + for (i = 0; i < ng; i++) printf("%d\en", groups[i]); exit(EXIT_SUCCESS); diff --git a/man3/getsubopt.3 b/man3/getsubopt.3 index ebe1466ab..2c51cbef1 100644 --- a/man3/getsubopt.3 +++ b/man3/getsubopt.3 @@ -153,7 +153,7 @@ int main(int argc, char **argv) int errfnd = 0; while ((opt = getopt(argc, argv, "o:")) != -1) { - switch(opt) { + switch (opt) { case 'o': subopts = optarg; while (*subopts != '\\0' && !errfnd) { diff --git a/man3/scandir.3 b/man3/scandir.3 index 9a350adf8..99c9fa353 100644 --- a/man3/scandir.3 +++ b/man3/scandir.3 @@ -138,7 +138,7 @@ main(void) if (n < 0) perror("scandir"); else { - while(n\-\-) { + while (n\-\-) { printf("%s\en", namelist[n]\->d_name); free(namelist[n]); } diff --git a/man3/stdarg.3 b/man3/stdarg.3 index e2adff676..4cec3d3c4 100644 --- a/man3/stdarg.3 +++ b/man3/stdarg.3 @@ -237,7 +237,7 @@ foo(va_alist) va_list ap; va_start(ap); - while(...) { + while (...) { ... x = va_arg(ap, type); ... @@ -289,7 +289,7 @@ foo(char *fmt, ...) va_start(ap, fmt); while (*fmt) - switch(*fmt++) { + switch (*fmt++) { case 's': /* string */ s = va_arg(ap, char *); printf("string %s\en", s); diff --git a/man3/strcat.3 b/man3/strcat.3 index a33e524d3..992955214 100644 --- a/man3/strcat.3 +++ b/man3/strcat.3 @@ -79,7 +79,7 @@ strncat(char *dest, const char *src, size_t n) size_t dest_len = strlen(dest); int i; - for(i = 0 ; i < n && src[i] != '\\0' ; i++) + for (i = 0 ; i < n && src[i] != '\\0' ; i++) dest[dest_len + i] = src[i]; dest[dest_len + i] = '\\0'; diff --git a/man3/strcpy.3 b/man3/strcpy.3 index 6e258d782..3f0b45f4b 100644 --- a/man3/strcpy.3 +++ b/man3/strcpy.3 @@ -78,9 +78,9 @@ char* strncpy(char *dest, const char *src, size_t n){ size_t i; - for(i = 0 ; i < n && src[i] != '\\0' ; i++) + for (i = 0 ; i < n && src[i] != '\\0' ; i++) dest[i] = src[i]; - for( ; i < n ; i++) + for ( ; i < n ; i++) dest[i] = '\\0'; return dest; diff --git a/man3/system.3 b/man3/system.3 index 8ac4f7631..aabd332e6 100644 --- a/man3/system.3 +++ b/man3/system.3 @@ -95,7 +95,7 @@ E.g. .br .nf - while(something) { + while (something) { int ret = system("foo"); if (WIFSIGNALED(ret) && diff --git a/man3/tsearch.3 b/man3/tsearch.3 index a3cdc13ba..f965df08e 100644 --- a/man3/tsearch.3 +++ b/man3/tsearch.3 @@ -218,7 +218,7 @@ action(const void *nodep, const VISIT which, const int depth) { int *datap; - switch(which) { + switch (which) { case preorder: break; case postorder: diff --git a/man7/epoll.7 b/man7/epoll.7 index e965e1386..6931d910a 100644 --- a/man7/epoll.7 +++ b/man7/epoll.7 @@ -184,14 +184,14 @@ from where it stopped before. .nf struct epoll_event ev, *events; -for(;;) { +for (;;) { nfds = epoll_wait(kdpfd, events, maxevents, \-1); for (n = 0; n < nfds; ++n) { if (events[n].data.fd == listener) { client = accept(listener, (struct sockaddr *) &local, &addrlen); - if(client < 0){ + if (client < 0){ perror("accept"); continue; } |