Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/eeprom de-__P-ify.
details: https://anonhg.NetBSD.org/src/rev/e094a8625cbb
branches: trunk
changeset: 499398:e094a8625cbb
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Nov 19 11:15:01 2000 +0000
description:
de-__P-ify.
diffstat:
usr.sbin/eeprom/defs.h | 42 +++++++++++++++++++++---------------------
usr.sbin/eeprom/eehandlers.c | 8 ++++----
usr.sbin/eeprom/getdate.y | 24 ++++++++++++------------
usr.sbin/eeprom/main.c | 14 +++++++-------
usr.sbin/eeprom/ophandlers.c | 4 ++--
5 files changed, 46 insertions(+), 46 deletions(-)
diffs (199 lines):
diff -r e4e9ff087ba0 -r e094a8625cbb usr.sbin/eeprom/defs.h
--- a/usr.sbin/eeprom/defs.h Sun Nov 19 10:56:05 2000 +0000
+++ b/usr.sbin/eeprom/defs.h Sun Nov 19 11:15:01 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: defs.h,v 1.4 1997/07/30 22:54:17 jtc Exp $ */
+/* $NetBSD: defs.h,v 1.5 2000/11/19 11:15:01 mrg Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
struct keytabent {
char *kt_keyword; /* keyword for this entry */
u_int kt_offset; /* offset into prom of value */
- void (*kt_handler) __P((struct keytabent *, char *));
+ void (*kt_handler) (struct keytabent *, char *);
/* handler function for this entry */
};
@@ -83,36 +83,36 @@
*/
struct extabent {
char *ex_keyword; /* keyword for this entry */
- void (*ex_handler) __P((struct extabent *,
- struct opiocdesc *, char *));
+ void (*ex_handler) (struct extabent *,
+ struct opiocdesc *, char *);
/* handler function for this entry */
};
#endif /* __sparc__ */
/* date parser */
struct timeb;
-time_t get_date __P((char *, struct timeb *));
+time_t get_date (char *, struct timeb *);
/* Sun 3/4 EEPROM handlers. */
-void ee_hwupdate __P((struct keytabent *, char *));
-void ee_num8 __P((struct keytabent *, char *));
-void ee_num16 __P((struct keytabent *, char *));
-void ee_screensize __P((struct keytabent *, char *));
-void ee_truefalse __P((struct keytabent *, char *));
-void ee_bootdev __P((struct keytabent *, char *));
-void ee_kbdtype __P((struct keytabent *, char *));
-void ee_constype __P((struct keytabent *, char *));
-void ee_diagpath __P((struct keytabent *, char *));
-void ee_banner __P((struct keytabent *, char *));
-void ee_notsupp __P((struct keytabent *, char *));
+void ee_hwupdate (struct keytabent *, char *);
+void ee_num8 (struct keytabent *, char *);
+void ee_num16 (struct keytabent *, char *);
+void ee_screensize (struct keytabent *, char *);
+void ee_truefalse (struct keytabent *, char *);
+void ee_bootdev (struct keytabent *, char *);
+void ee_kbdtype (struct keytabent *, char *);
+void ee_constype (struct keytabent *, char *);
+void ee_diagpath (struct keytabent *, char *);
+void ee_banner (struct keytabent *, char *);
+void ee_notsupp (struct keytabent *, char *);
/* Sun 3/4 EEPROM checksum routines. */
-u_char ee_checksum __P((u_char *, size_t));
-void ee_updatechecksums __P((void));
-void ee_verifychecksums __P((void));
+u_char ee_checksum (u_char *, size_t);
+void ee_updatechecksums (void);
+void ee_verifychecksums (void);
#ifdef __sparc__
/* Sparc Openprom handlers. */
-char *op_handler __P((char *, char *));
-void op_dump __P((void));
+char *op_handler (char *, char *);
+void op_dump (void);
#endif /* __sparc__ */
diff -r e4e9ff087ba0 -r e094a8625cbb usr.sbin/eeprom/eehandlers.c
--- a/usr.sbin/eeprom/eehandlers.c Sun Nov 19 10:56:05 2000 +0000
+++ b/usr.sbin/eeprom/eehandlers.c Sun Nov 19 11:15:01 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: eehandlers.c,v 1.7 2000/07/07 15:11:44 itojun Exp $ */
+/* $NetBSD: eehandlers.c,v 1.8 2000/11/19 11:15:01 mrg Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -64,12 +64,12 @@
extern u_short writecount;
struct timeb;
-extern time_t get_date __P((char *, struct timeb *));
+extern time_t get_date (char *, struct timeb *);
static char err_str[BUFSIZE];
-static void badval __P((struct keytabent *, char *));
-static int doio __P((struct keytabent *, u_char *, ssize_t, int));
+static void badval (struct keytabent *, char *);
+static int doio (struct keytabent *, u_char *, ssize_t, int);
#define BARF(kt) { \
badval((kt), arg); \
diff -r e4e9ff087ba0 -r e094a8625cbb usr.sbin/eeprom/getdate.y
--- a/usr.sbin/eeprom/getdate.y Sun Nov 19 10:56:05 2000 +0000
+++ b/usr.sbin/eeprom/getdate.y Sun Nov 19 11:15:01 2000 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: getdate.y,v 1.4 1997/10/18 08:40:46 lukem Exp $ */
+/* $NetBSD: getdate.y,v 1.5 2000/11/19 11:15:01 mrg Exp $ */
/*
**
@@ -18,7 +18,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: getdate.y,v 1.4 1997/10/18 08:40:46 lukem Exp $");
+__RCSID("$NetBSD: getdate.y,v 1.5 2000/11/19 11:15:01 mrg Exp $");
#endif
#include <sys/types.h>
@@ -88,16 +88,16 @@
static time_t yyRelSeconds;
/* Prototyes for local functions. */
-static int yyerror __P((const char *));
-static time_t ToSeconds __P((time_t, time_t, time_t, MERIDIAN));
-static time_t Convert __P((time_t, time_t, time_t, time_t, time_t, time_t,
- MERIDIAN, DSTMODE));
-static time_t DSTcorrect __P((time_t, time_t));
-static time_t RelativeDate __P((time_t, time_t, time_t));
-static time_t RelativeMonth __P((time_t, time_t));
-static int LookupWord __P((char *));
-static int yylex __P((void));
-static int yyparse __P((void));
+static int yyerror (const char *);
+static time_t ToSeconds (time_t, time_t, time_t, MERIDIAN);
+static time_t Convert (time_t, time_t, time_t, time_t, time_t, time_t,
+ MERIDIAN, DSTMODE);
+static time_t DSTcorrect (time_t, time_t);
+static time_t RelativeDate (time_t, time_t, time_t);
+static time_t RelativeMonth (time_t, time_t);
+static int LookupWord (char *);
+static int yylex (void);
+static int yyparse (void);
%}
diff -r e4e9ff087ba0 -r e094a8625cbb usr.sbin/eeprom/main.c
--- a/usr.sbin/eeprom/main.c Sun Nov 19 10:56:05 2000 +0000
+++ b/usr.sbin/eeprom/main.c Sun Nov 19 11:15:01 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.10 2000/09/24 09:45:55 bjh21 Exp $ */
+/* $NetBSD: main.c,v 1.11 2000/11/19 11:15:01 mrg Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
#ifndef lint
__COPYRIGHT(
"@(#) Copyright (c) 1996 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: main.c,v 1.10 2000/09/24 09:45:55 bjh21 Exp $");
+__RCSID("$NetBSD: main.c,v 1.11 2000/11/19 11:15:01 mrg Exp $");
#endif
#include <sys/param.h>
@@ -99,12 +99,12 @@
{ NULL, 0, ee_notsupp },
};
-int main __P((int, char *[]));
-static void action __P((char *));
-static void dump_prom __P((void));
-static void usage __P((void));
+int main (int, char *[]);
+static void action (char *);
+static void dump_prom (void);
+static void usage (void);
#ifdef __sparc__
-static int getcputype __P((void));
+static int getcputype (void);
#endif /* __sparc__ */
char *path_eeprom = _PATH_EEPROM;
diff -r e4e9ff087ba0 -r e094a8625cbb usr.sbin/eeprom/ophandlers.c
--- a/usr.sbin/eeprom/ophandlers.c Sun Nov 19 10:56:05 2000 +0000
+++ b/usr.sbin/eeprom/ophandlers.c Sun Nov 19 11:15:01 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ophandlers.c,v 1.6 1997/10/18 08:40:52 lukem Exp $ */
+/* $NetBSD: ophandlers.c,v 1.7 2000/11/19 11:15:01 mrg Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
static char err_str[BUFSIZE];
-static void op_notsupp __P((struct extabent *, struct opiocdesc *, char *));
+static void op_notsupp (struct extabent *, struct opiocdesc *, char *);
/*
* There are several known fields that I either don't know how to
Home |
Main Index |
Thread Index |
Old Index