summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-04-04 19:56:35 +0000
committerderaadt <deraadt@openbsd.org>1997-04-04 19:56:35 +0000
commit1f0d745be8d38736abe1b378bb45bffae8de3563 (patch)
treea852dc8ae83fc8885c103fb48d92c17ed4074923
parentif the user changes an option, spit out a warning telling them they need (diff)
downloadwireguard-openbsd-1f0d745be8d38736abe1b378bb45bffae8de3563.tar.xz
wireguard-openbsd-1f0d745be8d38736abe1b378bb45bffae8de3563.zip
with small quantities of beer and pizza i produce fewer bugs. really.
-rw-r--r--usr.sbin/config/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index fac6906f97f..2d770c08f18 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.11 1997/04/04 19:54:29 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.12 1997/04/04 19:56:35 deraadt Exp $ */
/* $NetBSD: main.c,v 1.18 1996/08/31 20:58:20 mycroft Exp $ */
/*
@@ -583,11 +583,11 @@ optcmp(sp1, sp2)
r = strcmp(sp1->name, sp2->name);
if (r == 0) {
- if (!sp1 && !sp2)
- r = 0;
- else if (sp1 && !sp2)
+ if (!sp1->val && !sp2->val)
+ r = 0;
+ else if (sp1->val && !sp2->val)
r = -1;
- else if (sp2 && !sp1)
+ else if (sp2->val && !sp1->val)
r = 1;
else r = strcmp(sp1->val, sp2->val);
}