aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipcalc.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-04-12 21:07:07 +0000
committerBill Nottingham <notting@redhat.com>2002-04-12 21:07:07 +0000
commit4e4eb9b9633136a6dfc2937149245b538bdafd0b (patch)
tree9ae06917d73822ccf47a6798ebdef2a15f9afedb /src/ipcalc.c
parent586b0d39acef35025e54eb0be2913c1acf3defa1 (diff)
downloadinitscripts-4e4eb9b9633136a6dfc2937149245b538bdafd0b.tar
initscripts-4e4eb9b9633136a6dfc2937149245b538bdafd0b.tar.gz
initscripts-4e4eb9b9633136a6dfc2937149245b538bdafd0b.tar.bz2
initscripts-4e4eb9b9633136a6dfc2937149245b538bdafd0b.tar.xz
initscripts-4e4eb9b9633136a6dfc2937149245b538bdafd0b.zip
quit stripping binaries
Diffstat (limited to 'src/ipcalc.c')
-rw-r--r--src/ipcalc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ipcalc.c b/src/ipcalc.c
index 56b5ae87..ad279587 100644
--- a/src/ipcalc.c
+++ b/src/ipcalc.c
@@ -10,7 +10,7 @@
*
* Authors:
* Erik Troan <ewt@redhat.com>
- * Preston Brown <pbrown@redhat.com
+ * Preston Brown <pbrown@redhat.com>
*/
@@ -290,6 +290,11 @@ int main(int argc, const char **argv) {
}
poptFreeContext(optCon);
+
+ if (!(showNetmask|showPrefix|showBroadcast|showNetwork|showHostname)) {
+ poptPrintHelp(optCon, stderr, 0);
+ return 1;
+ }
/* we know what we want to display now, so display it. */