summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcanacar <canacar@openbsd.org>2008-07-12 06:20:47 +0000
committercanacar <canacar@openbsd.org>2008-07-12 06:20:47 +0000
commite27f27612fcdf58c6183b76692f7ab7b245ce4ef (patch)
tree58a471faab230d61d4db3b110f38414a273dd617
parentregen (diff)
downloadwireguard-openbsd-e27f27612fcdf58c6183b76692f7ab7b245ce4ef.tar.xz
wireguard-openbsd-e27f27612fcdf58c6183b76692f7ab7b245ce4ef.zip
Add ':q' as an alias to ':quit', to match old behaviour. Initial patch
from dlg@, this is a simpler version.
-rw-r--r--usr.bin/systat/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c
index 537411e4a66..7be6527f314 100644
--- a/usr.bin/systat/main.c
+++ b/usr.bin/systat/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.40 2008/06/13 10:06:14 deraadt Exp $ */
+/* $Id: main.c,v 1.41 2008/07/12 06:20:47 canacar Exp $ */
/*
* Copyright (c) 2001, 2007 Can Erkin Acar
* Copyright (c) 2001 Daniel Hartmeier
@@ -289,7 +289,7 @@ cmd_compat(void)
need_update = 1;
return;
}
- if (strcasecmp(cmdbuf, "quit") == 0) {
+ if (strcasecmp(cmdbuf, "quit") == 0 || strcasecmp(cmdbuf, "q") == 0) {
gotsig_close = 1;
return;
}