Source-Changes-HG archive

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

[src/trunk]: src/bin/sync ANSIfy, use setprogname. Patch by Petri Koistinen.



details:   https://anonhg.NetBSD.org/src/rev/d61d3c4f96ce
branches:  trunk
changeset: 515111:d61d3c4f96ce
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Sep 16 18:57:45 2001 +0000

description:
ANSIfy, use setprogname. Patch by Petri Koistinen.

diffstat:

 bin/sync/sync.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (35 lines):

diff -r e6afcd34615c -r d61d3c4f96ce bin/sync/sync.c
--- a/bin/sync/sync.c   Sun Sep 16 18:51:10 2001 +0000
+++ b/bin/sync/sync.c   Sun Sep 16 18:57:45 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sync.c,v 1.10 2000/07/03 03:26:20 matt Exp $   */
+/* $NetBSD: sync.c,v 1.11 2001/09/16 18:57:45 wiz Exp $ */
 
 /*
  * Copyright (c) 1987, 1993
@@ -43,21 +43,20 @@
 #if 0
 static char sccsid[] = "@(#)sync.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: sync.c,v 1.10 2000/07/03 03:26:20 matt Exp $");
+__RCSID("$NetBSD: sync.c,v 1.11 2001/09/16 18:57:45 wiz Exp $");
 #endif
 #endif /* not lint */
 
 #include <stdlib.h>
 #include <unistd.h>
 
-int main __P((int, char *[]));
+int main(int, char *[]);
 
 /* ARGSUSED */
 int
-main(argc, argv)
-       int argc;
-       char *argv[];
+main(int argc, char *argv[])
 {
+       setprogname(argv[0]);
        sync();
        exit(0);
        /* NOTREACHED */



Home | Main Index | Thread Index | Old Index