summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2005-07-01 05:18:57 +0000
committerjmc <jmc@openbsd.org>2005-07-01 05:18:57 +0000
commit2a4e05a935cf2ded2664e3fa320f8de50d430459 (patch)
treeab4f4a83654e7bb5ad6c123db577d7b28016aff4 /lib/libc/stdlib
parentRemove duplicate if_start assignment. ok dlg@ (diff)
downloadwireguard-openbsd-2a4e05a935cf2ded2664e3fa320f8de50d430459.tar.xz
wireguard-openbsd-2a4e05a935cf2ded2664e3fa320f8de50d430459.zip
whitespace;
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/getopt.38
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3
index 52c902d6a54..c721bbcff9a 100644
--- a/lib/libc/stdlib/getopt.3
+++ b/lib/libc/stdlib/getopt.3
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: getopt.3,v 1.32 2005/07/01 02:11:55 millert Exp $
+.\" $OpenBSD: getopt.3,v 1.33 2005/07/01 05:18:57 jmc Exp $
.\"
.Dd December 17, 2002
.Dt GETOPT 3
@@ -356,7 +356,7 @@ number and letter arguments.
.Bd -literal -offset indent
int aflag = 0, bflag = 0, ch, lastch = '\e0';
-int length = -1, newarg = 1, prevoptind = 1;
+int length = -1, newarg = 1, prevoptind = 1;
while ((ch = getopt(argc, argv, "0123456789ab")) != -1) {
switch (ch) {
@@ -366,7 +366,7 @@ while ((ch = getopt(argc, argv, "0123456789ab")) != -1) {
length = 0;
else if (length > INT_MAX / 10)
usage();
- length = (length * 10) + (ch - '0');
+ length = (length * 10) + (ch - '0');
break;
case 'a':
aflag = 1;
@@ -379,6 +379,6 @@ while ((ch = getopt(argc, argv, "0123456789ab")) != -1) {
}
lastch = ch;
newarg = optind != prevoptind;
- prevoptind = optind;
+ prevoptind = optind;
}
.Ed