diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-05 06:30:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-05 06:30:38 +0000 |
commit | 4af1a244b82c5c2494270021a2449db0a9abaaa6 (patch) | |
tree | 3d601a666935fa36f0f99e75e7eca8f4fe509bc2 | |
parent | a7c42a994d59cafe37c0c355d9b55aa2d2e355f0 (diff) |
small KNF
-rw-r--r-- | usr.bin/id/id.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c index f22ccff8bcb..59152954bb4 100644 --- a/usr.bin/id/id.c +++ b/usr.bin/id/id.c @@ -1,4 +1,4 @@ -/* $OpenBSD: id.c,v 1.23 2015/05/19 16:03:19 millert Exp $ */ +/* $OpenBSD: id.c,v 1.24 2015/10/05 06:30:37 deraadt Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -274,7 +274,8 @@ user(struct passwd *pw) if ((gr = getgrgid(gid))) (void)printf("(%s)", gr->gr_name); /* Skip same gid entries. */ - while (++cnt < ngroups && gid == groups[cnt]); + while (++cnt < ngroups && gid == groups[cnt]) + ; } (void)printf("\n"); } @@ -307,7 +308,8 @@ group(struct passwd *pw, int nflag) } prefix = " "; /* Skip same gid entries. */ - while (++cnt < ngroups && gid == groups[cnt]); + while (++cnt < ngroups && gid == groups[cnt]) + ; } (void)printf("\n"); } |