Source-Changes-HG archive

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

[src/trunk]: src/libexec/comsat fix nested extern



details:   https://anonhg.NetBSD.org/src/rev/497af3a7e96c
branches:  trunk
changeset: 503335:497af3a7e96c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 04 21:59:52 2001 +0000

description:
fix nested extern

diffstat:

 libexec/comsat/comsat.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r 9a4de0366661 -r 497af3a7e96c libexec/comsat/comsat.c
--- a/libexec/comsat/comsat.c   Sun Feb 04 21:56:11 2001 +0000
+++ b/libexec/comsat/comsat.c   Sun Feb 04 21:59:52 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: comsat.c,v 1.17 2000/10/04 18:52:50 mjl Exp $  */
+/*     $NetBSD: comsat.c,v 1.18 2001/02/04 21:59:52 christos Exp $     */
 
 /*
  * Copyright (c) 1980, 1993
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "from: @(#)comsat.c     8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: comsat.c,v 1.17 2000/10/04 18:52:50 mjl Exp $");
+__RCSID("$NetBSD: comsat.c,v 1.18 2001/02/04 21:59:52 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -85,6 +85,8 @@
 void onalrm (int);
 void reapchildren (int);
 
+extern char *__progname;
+
 int
 main(int argc, char *argv[])
 {
@@ -93,7 +95,6 @@
        int fromlen;
        char msgbuf[100];
        sigset_t sigset;
-       extern char *__progname;
 
        /* verify proper invocation */
        fromlen = sizeof(from);
@@ -110,7 +111,7 @@
                        logging = 1;
                        break;
                default:
-                       syslog(LOG_ERR, "usage: %s [-l]", __progname);
+                       syslog(LOG_ERR, "Usage: %s [-l]", __progname);
                        exit(1);
                }
        if (chdir(_PATH_MAILDIR)) {



Home | Main Index | Thread Index | Old Index