diff options
author | 2002-12-12 00:00:16 +0000 | |
---|---|---|
committer | 2002-12-12 00:00:16 +0000 | |
commit | d89570120b6e280f059fa083094c8e9df6ce3cbd (patch) | |
tree | 450c1a246f6bf539cb3df84a4c68fbec5e03de95 | |
parent | o Check mmap() return value against MAP_FAILED, not -1. (diff) | |
download | wireguard-openbsd-d89570120b6e280f059fa083094c8e9df6ce3cbd.tar.xz wireguard-openbsd-d89570120b6e280f059fa083094c8e9df6ce3cbd.zip |
knf
-rw-r--r-- | usr.bin/modstat/modstat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/modstat/modstat.c b/usr.bin/modstat/modstat.c index 795bc50b2a4..821f2b864de 100644 --- a/usr.bin/modstat/modstat.c +++ b/usr.bin/modstat/modstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modstat.c,v 1.18 2002/05/24 07:03:35 ericj Exp $ */ +/* $OpenBSD: modstat.c,v 1.19 2002/12/12 00:00:16 deraadt Exp $ */ /* * Copyright (c) 1993 Terrence R. Lambert. @@ -147,7 +147,7 @@ main(argc, argv) setgid(getgid()); printf("Type Id Off %-*s Size %-*s Rev Module Name\n", - POINTERSIZE, "Loadaddr", POINTERSIZE, "Info"); + POINTERSIZE, "Loadaddr", POINTERSIZE, "Info"); if (modnum != -1 || modname != NULL) { if (dostat(devfd, modnum, modname)) @@ -156,8 +156,8 @@ main(argc, argv) } /* Start at 0 and work up until we receive EINVAL. */ - for (modnum = 0; dostat(devfd, modnum, NULL) < 2; modnum++) - ; + for (modnum = 0; dostat(devfd, modnum, NULL) < 2; modnum++) + ; exit(0); } |