Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sa de-__P()
details: https://anonhg.NetBSD.org/src/rev/d9ea8a98fb4a
branches: trunk
changeset: 755577:d9ea8a98fb4a
user: dholland <dholland%NetBSD.org@localhost>
date: Thu Jun 10 06:09:10 2010 +0000
description:
de-__P()
diffstat:
usr.sbin/sa/extern.h | 28 ++++++++++++++--------------
usr.sbin/sa/main.c | 26 +++++++++++++-------------
usr.sbin/sa/pdb.c | 10 +++++-----
usr.sbin/sa/usrdb.c | 6 +++---
4 files changed, 35 insertions(+), 35 deletions(-)
diffs (153 lines):
diff -r 94a6cd98a8f8 -r d9ea8a98fb4a usr.sbin/sa/extern.h
--- a/usr.sbin/sa/extern.h Thu Jun 10 06:03:20 2010 +0000
+++ b/usr.sbin/sa/extern.h Thu Jun 10 06:09:10 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.7 2003/11/12 13:31:07 grant Exp $ */
+/* $NetBSD: extern.h,v 1.8 2010/06/10 06:09:10 dholland Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@@ -64,25 +64,25 @@
/* typedefs */
-typedef int (*cmpf_t) __P((const DBT *, const DBT *));
+typedef int (*cmpf_t)(const DBT *, const DBT *);
/* external functions in sa.c */
-int main __P((int, char **));
-const char *fmt __P((const DBT *));
+int main(int argc, char **argv);
+const char *fmt(const DBT *);
/* external functions in pdb.c */
-int pacct_init __P((void));
-void pacct_destroy __P((void));
-int pacct_add __P((const struct cmdinfo *));
-int pacct_update __P((void));
-void pacct_print __P((void));
+int pacct_init(void);
+void pacct_destroy(void);
+int pacct_add(const struct cmdinfo *);
+int pacct_update(void);
+void pacct_print(void);
/* external functions in usrdb.c */
-int usracct_init __P((void));
-void usracct_destroy __P((void));
-int usracct_add __P((const struct cmdinfo *));
-int usracct_update __P((void));
-void usracct_print __P((void));
+int usracct_init(void);
+void usracct_destroy(void);
+int usracct_add(const struct cmdinfo *);
+int usracct_update(void);
+void usracct_print(void);
/* variables */
diff -r 94a6cd98a8f8 -r d9ea8a98fb4a usr.sbin/sa/main.c
--- a/usr.sbin/sa/main.c Thu Jun 10 06:03:20 2010 +0000
+++ b/usr.sbin/sa/main.c Thu Jun 10 06:09:10 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.25 2009/11/17 18:37:45 drochner Exp $ */
+/* $NetBSD: main.c,v 1.26 2010/06/10 06:09:10 dholland Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@@ -39,7 +39,7 @@
__COPYRIGHT("@(#) Copyright (c) 1994\
Christopher G. Demetriou. All rights reserved.");
-__RCSID("$NetBSD: main.c,v 1.25 2009/11/17 18:37:45 drochner Exp $");
+__RCSID("$NetBSD: main.c,v 1.26 2010/06/10 06:09:10 dholland Exp $");
#endif
/*
@@ -60,17 +60,17 @@
#include "extern.h"
#include "pathnames.h"
-static int acct_load __P((char *, int));
-static u_quad_t decode_comp_t __P((comp_t));
-static int cmp_comm __P((const char *, const char *));
-static int cmp_usrsys __P((const DBT *, const DBT *));
-static int cmp_avgusrsys __P((const DBT *, const DBT *));
-static int cmp_dkio __P((const DBT *, const DBT *));
-static int cmp_avgdkio __P((const DBT *, const DBT *));
-static int cmp_cpumem __P((const DBT *, const DBT *));
-static int cmp_avgcpumem __P((const DBT *, const DBT *));
-static int cmp_calls __P((const DBT *, const DBT *));
-static void usage __P((void)) __dead;
+static int acct_load(char *, int);
+static u_quad_t decode_comp_t(comp_t);
+static int cmp_comm(const char *, const char *);
+static int cmp_usrsys(const DBT *, const DBT *);
+static int cmp_avgusrsys(const DBT *, const DBT *);
+static int cmp_dkio(const DBT *, const DBT *);
+static int cmp_avgdkio(const DBT *, const DBT *);
+static int cmp_cpumem(const DBT *, const DBT *);
+static int cmp_avgcpumem(const DBT *, const DBT *);
+static int cmp_calls(const DBT *, const DBT *);
+static void usage(void) __dead;
int aflag, bflag, cflag, dflag, Dflag, fflag, iflag, jflag, kflag;
int Kflag, lflag, mflag, qflag, rflag, sflag, tflag, uflag, vflag;
diff -r 94a6cd98a8f8 -r d9ea8a98fb4a usr.sbin/sa/pdb.c
--- a/usr.sbin/sa/pdb.c Thu Jun 10 06:03:20 2010 +0000
+++ b/usr.sbin/sa/pdb.c Thu Jun 10 06:09:10 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pdb.c,v 1.13 2009/04/18 13:37:04 lukem Exp $ */
+/* $NetBSD: pdb.c,v 1.14 2010/06/10 06:09:10 dholland Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: pdb.c,v 1.13 2009/04/18 13:37:04 lukem Exp $");
+__RCSID("$NetBSD: pdb.c,v 1.14 2010/06/10 06:09:10 dholland Exp $");
#endif
#include <sys/types.h>
@@ -49,9 +49,9 @@
#include "extern.h"
#include "pathnames.h"
-static int check_junk __P((struct cmdinfo *));
-static void add_ci __P((const struct cmdinfo *, struct cmdinfo *));
-static void print_ci __P((const struct cmdinfo *, const struct cmdinfo *));
+static int check_junk(struct cmdinfo *);
+static void add_ci(const struct cmdinfo *, struct cmdinfo *);
+static void print_ci(const struct cmdinfo *, const struct cmdinfo *);
static DB *pacct_db;
diff -r 94a6cd98a8f8 -r d9ea8a98fb4a usr.sbin/sa/usrdb.c
--- a/usr.sbin/sa/usrdb.c Thu Jun 10 06:03:20 2010 +0000
+++ b/usr.sbin/sa/usrdb.c Thu Jun 10 06:09:10 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usrdb.c,v 1.11 2003/11/12 13:31:08 grant Exp $ */
+/* $NetBSD: usrdb.c,v 1.12 2010/06/10 06:09:10 dholland Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: usrdb.c,v 1.11 2003/11/12 13:31:08 grant Exp $");
+__RCSID("$NetBSD: usrdb.c,v 1.12 2010/06/10 06:09:10 dholland Exp $");
#endif
#include <sys/types.h>
@@ -50,7 +50,7 @@
#include "extern.h"
#include "pathnames.h"
-static int uid_compare __P((const DBT *, const DBT *));
+static int uid_compare(const DBT *, const DBT *);
static DB *usracct_db;
Home |
Main Index |
Thread Index |
Old Index