Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
*result = NULL;
if (buflen < PWD_BUFFER_SIZE) {
- DO_ERANGE:
+ DO_ERANGE:
errno=rv;
goto DONE;
}
assert(p->gr_mem);
m = p->gr_mem;
- do {
+ while (1) {
if (!*m) {
if (fputc('\n', f) >= 0) {
rv = 0;
}
++m;
fmt = format;
- } while (1);
-
+ }
}
-
}
return rv;
rv = 0;
}
-DO_UNLOCK:
+ DO_UNLOCK:
return rv;
}
#endif
int i;
i = 0;
- do {
+ while (1) {
p = (char *) data + pw_off[i];
if ((i & 6) ^ 2) { /* i!=2 and i!=3 */
*line++ = 0;
++i;
- } while (1);
+ } /* while (1) */
return -1;
}
end_of_buf = ((struct group *) data)->gr_name; /* Evil hack! */
i = 0;
- do {
+ while (1) {
p = (char *) data + gr_off[i];
if (i < 2) {
if (--i) {
p = endptr; /* Pointing to char prior to first member. */
- do {
+ while (1) {
*members++ = ++p;
- if (!--i) break;
- while (*++p) {}
- } while (1);
+ if (!--i)
+ break;
+ while (*++p)
+ continue;
+ }
}
*members = NULL;
return 0;
}
- } while (1);
+ } /* while (1) */
ERR:
return -1;