Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/tpfmt remove a duplicated "unknown option" message.



details:   https://anonhg.NetBSD.org/src/rev/32d28f975c97
branches:  trunk
changeset: 767650:32d28f975c97
user:      yamt <yamt%NetBSD.org@localhost>
date:      Tue Jul 26 12:21:27 2011 +0000

description:
remove a duplicated "unknown option" message.

diffstat:

 usr.bin/tpfmt/tpfmt.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 6786ae723547 -r 32d28f975c97 usr.bin/tpfmt/tpfmt.c
--- a/usr.bin/tpfmt/tpfmt.c     Tue Jul 26 08:56:26 2011 +0000
+++ b/usr.bin/tpfmt/tpfmt.c     Tue Jul 26 12:21:27 2011 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: tpfmt.c,v 1.3 2011/04/14 16:27:17 yamt Exp $   */
+/*     $NetBSD: tpfmt.c,v 1.4 2011/07/26 12:21:27 yamt Exp $   */
 
 /*-
- * Copyright (c) 2010 YAMAMOTO Takashi,
+ * Copyright (c) 2010,2011 YAMAMOTO Takashi,
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: tpfmt.c,v 1.3 2011/04/14 16:27:17 yamt Exp $");
+__RCSID("$NetBSD: tpfmt.c,v 1.4 2011/07/26 12:21:27 yamt Exp $");
 #endif /* not lint */
 
 #include <sys/rbtree.h>
@@ -171,7 +171,7 @@
                        distinguish_processes = false;
                        break;
                default:
-                       errx(EXIT_FAILURE, "unknown option %c", ch);
+                       exit(EXIT_FAILURE);
                }
        }
        argc -= optind;



Home | Main Index | Thread Index | Old Index