diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-04-05 14:17:54 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-04-05 14:17:54 +0000 |
| commit | 41798314b69f4ea3af7173f0f3a02b8cb5d9b33d (patch) | |
| tree | f7e53d4f7141aecd8c58ef1308416d2562cb62bf | |
| parent | 9ee19dd5562590464bb2322378018422ff070dcf (diff) | |
| download | man-pages-41798314b69f4ea3af7173f0f3a02b8cb5d9b33d.tar.gz | |
Code formatting fixes
| -rw-r--r-- | man2/select.2 | 3 | ||||
| -rw-r--r-- | man3/cmsg.3 | 4 | ||||
| -rw-r--r-- | man3/getopt.3 | 3 | ||||
| -rw-r--r-- | man3/hsearch.3 | 4 | ||||
| -rw-r--r-- | man3/mempcpy.3 | 3 | ||||
| -rw-r--r-- | man3/timegm.3 | 4 | ||||
| -rw-r--r-- | man3/tmpnam.3 | 4 |
7 files changed, 16 insertions, 9 deletions
diff --git a/man2/select.2 b/man2/select.2 index c8ce174349..451a2884af 100644 --- a/man2/select.2 +++ b/man2/select.2 @@ -310,7 +310,8 @@ unable to allocate memory for internal tables. #include <unistd.h> int -main(void) { +main(void) +{ fd_set rfds; struct timeval tv; int retval; diff --git a/man3/cmsg.3 b/man3/cmsg.3 index ad55be69aa..1fe5dda284 100644 --- a/man3/cmsg.3 +++ b/man3/cmsg.3 @@ -135,7 +135,6 @@ option in a received ancillary buffer: .PP .RS .nf -.ta 8n 16n 32n struct msghdr msgh; struct cmsghdr *cmsg; int *ttlptr; @@ -151,14 +150,13 @@ for (cmsg = CMSG_FIRSTHDR(&msgh); received_ttl = *ttlptr; break; } -} + } if (cmsg == NULL) { /* * Error: IP_TTL not enabled or small buffer * or I/O error. */ } -.ta .fi .RE .PP diff --git a/man3/getopt.3 b/man3/getopt.3 index 4d9f6c3533..d9dd5d7064 100644 --- a/man3/getopt.3 +++ b/man3/getopt.3 @@ -313,7 +313,8 @@ with most of its features. #include <getopt.h> int -main(int argc, char **argv) { +main(int argc, char **argv) +{ int c; int digit_optind = 0; diff --git a/man3/hsearch.3 b/man3/hsearch.3 index 15482878a6..b89d090414 100644 --- a/man3/hsearch.3 +++ b/man3/hsearch.3 @@ -163,7 +163,9 @@ char *data[] = { "alpha", "bravo", "charlie", "delta", "victor", "whisky", "x-ray", "yankee", "zulu" }; -int main() { +int +main(void) +{ ENTRY e, *ep; int i; diff --git a/man3/mempcpy.3 b/man3/mempcpy.3 index 4e389a826b..465fe11f69 100644 --- a/man3/mempcpy.3 +++ b/man3/mempcpy.3 @@ -50,7 +50,8 @@ wide characters. .SH "EXAMPLE" .nf void * -combine (void *o1, size_t s1, void *o2, size_t s2) { +combine(void *o1, size_t s1, void *o2, size_t s2) +{ void *result = malloc(s1 + s2); if (result != NULL) mempcpy(mempcpy(result, o1, s1), o2, s2); diff --git a/man3/timegm.3 b/man3/timegm.3 index 0a8289dee9..4cdbb7029b 100644 --- a/man3/timegm.3 +++ b/man3/timegm.3 @@ -62,7 +62,9 @@ Something like #include <time.h> #include <stdlib.h> -time_t my_timegm (struct tm *tm) { +time_t +my_timegm(struct tm *tm) +{ time_t ret; char *tz; diff --git a/man3/tmpnam.3 b/man3/tmpnam.3 index 0238c929f2..597562501d 100644 --- a/man3/tmpnam.3 +++ b/man3/tmpnam.3 @@ -105,7 +105,9 @@ defined by .sp .nf .in +5 -char *tmpnam_r(char *s) { +char * +tmpnam_r(char *s) +{ return s ? tmpnam(s) : NULL; } .in |
