vapier 15/08/05 07:35:34 Modified: uname-test.c Log: switch to using GNU style for comments too
Revision Changes Path 1.16 src/patchsets/coreutils/uname-test/uname-test.c file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/coreutils/uname-test/uname-test.c?rev=1.16&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/coreutils/uname-test/uname-test.c?rev=1.16&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/coreutils/uname-test/uname-test.c?r1=1.15&r2=1.16 Index: uname-test.c =================================================================== RCS file: /var/cvsroot/gentoo/src/patchsets/coreutils/uname-test/uname-test.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- uname-test.c 5 Aug 2015 07:33:31 -0000 1.15 +++ uname-test.c 5 Aug 2015 07:35:34 -0000 1.16 @@ -47,17 +47,17 @@ static void __eat_cpuinfo_space (char *buf) { - /* first eat trailing space */ + /* First eat trailing space. */ char *tmp = buf + strlen (buf) - 1; while (tmp > buf && isspace (*tmp)) *tmp-- = '\0'; - /* then eat leading space */ + /* Then eat leading space. */ tmp = buf; while (*tmp && isspace (*tmp)) tmp++; if (tmp != buf) memmove (buf, tmp, strlen (tmp) + 1); - /* finally collapse whitespace */ + /* Finally collapse whitespace. */ tmp = buf; while (tmp[0] && tmp[1]) { if (isspace (tmp[0]) && isspace (tmp[1])) { @@ -93,10 +93,9 @@ break; } if (eol != '\n') { - /* we need two fscanf's here in case the previous - * length limit caused us to read right up to the - * newline ... doing "%*[^\n]\n" wont eat the newline - */ + /* We need two fscanf's here in case the previous length limit + * caused us to read right up to the newline. Doing something + * like "%*[^\n]\n" won't eat the newline. */ ignore_value (fscanf (fp, "%*[^\n]")); ignore_value (fscanf (fp, "\n")); }
