Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin ANSIfy + __dead
details: https://anonhg.NetBSD.org/src/rev/866b7ac43cb5
branches: trunk
changeset: 769339:866b7ac43cb5
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Sep 06 18:34:57 2011 +0000
description:
ANSIfy + __dead
diffstat:
usr.bin/tty/tty.c | 14 +++++---------
usr.bin/uname/uname.c | 13 +++++--------
2 files changed, 10 insertions(+), 17 deletions(-)
diffs (92 lines):
diff -r 5fb6b01a7fa6 -r 866b7ac43cb5 usr.bin/tty/tty.c
--- a/usr.bin/tty/tty.c Tue Sep 06 18:34:37 2011 +0000
+++ b/usr.bin/tty/tty.c Tue Sep 06 18:34:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tty.c,v 1.7 2008/07/21 14:19:27 lukem Exp $ */
+/* $NetBSD: tty.c,v 1.8 2011/09/06 18:34:57 joerg Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -39,20 +39,17 @@
#if 0
static char sccsid[] = "@(#)tty.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: tty.c,v 1.7 2008/07/21 14:19:27 lukem Exp $");
+__RCSID("$NetBSD: tty.c,v 1.8 2011/09/06 18:34:57 joerg Exp $");
#endif /* not lint */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-int main __P((int, char **));
-static void usage __P((void));
+__dead static void usage(void);
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char **argv)
{
int ch, sflag;
char *t;
@@ -76,9 +73,8 @@
exit(t ? 0 : 1);
}
-
static void
-usage ()
+usage(void)
{
fprintf(stderr, "usage: tty [-s]\n");
exit(2);
diff -r 5fb6b01a7fa6 -r 866b7ac43cb5 usr.bin/uname/uname.c
--- a/usr.bin/uname/uname.c Tue Sep 06 18:34:37 2011 +0000
+++ b/usr.bin/uname/uname.c Tue Sep 06 18:34:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uname.c,v 1.10 1998/11/09 13:24:05 kleink Exp $ */
+/* $NetBSD: uname.c,v 1.11 2011/09/06 18:35:13 joerg Exp $ */
/*
* Copyright (c) 1994 Winning Strategies, Inc.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: uname.c,v 1.10 1998/11/09 13:24:05 kleink Exp $");
+__RCSID("$NetBSD: uname.c,v 1.11 2011/09/06 18:35:13 joerg Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -47,8 +47,7 @@
#include <sys/sysctl.h>
#include <sys/utsname.h>
-int main __P((int, char **));
-static void usage __P((void));
+__dead static void usage(void);
/* Note that PRINT_MACHINE_ARCH is excluded from PRINT_ALL! */
#define PRINT_SYSNAME 0x01
@@ -61,9 +60,7 @@
(PRINT_SYSNAME|PRINT_NODENAME|PRINT_RELEASE|PRINT_VERSION|PRINT_MACHINE)
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char **argv)
{
struct utsname u;
char machine_arch[SYS_NMLN];
@@ -155,7 +152,7 @@
}
static void
-usage()
+usage(void)
{
fprintf(stderr, "usage: uname [-amnprsv]\n");
exit(EXIT_FAILURE);
Home |
Main Index |
Thread Index |
Old Index