Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sa sprinkle some const



details:   https://anonhg.NetBSD.org/src/rev/8f6c3e5dd52c
branches:  trunk
changeset: 755579:8f6c3e5dd52c
user:      dholland <dholland%NetBSD.org@localhost>
date:      Thu Jun 10 06:28:33 2010 +0000

description:
sprinkle some const

diffstat:

 usr.sbin/sa/main.c |  8 ++++----
 usr.sbin/sa/pdb.c  |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 99594df0ccb4 -r 8f6c3e5dd52c usr.sbin/sa/main.c
--- a/usr.sbin/sa/main.c        Thu Jun 10 06:17:21 2010 +0000
+++ b/usr.sbin/sa/main.c        Thu Jun 10 06:28:33 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.27 2010/06/10 06:17:21 dholland Exp $ */
+/* $NetBSD: main.c,v 1.28 2010/06/10 06:28:33 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.27 2010/06/10 06:17:21 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.28 2010/06/10 06:28:33 dholland Exp $");
 #endif
 
 /*
@@ -60,7 +60,7 @@
 #include "extern.h"
 #include "pathnames.h"
 
-static int acct_load(char *, int);
+static int acct_load(const 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 *);
@@ -295,7 +295,7 @@
 }
 
 static int
-acct_load(char *pn, int wr)
+acct_load(const char *pn, int wr)
 {
        struct acct ac;
        struct cmdinfo ci;
diff -r 99594df0ccb4 -r 8f6c3e5dd52c usr.sbin/sa/pdb.c
--- a/usr.sbin/sa/pdb.c Thu Jun 10 06:17:21 2010 +0000
+++ b/usr.sbin/sa/pdb.c Thu Jun 10 06:28:33 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pdb.c,v 1.15 2010/06/10 06:17:21 dholland Exp $ */
+/* $NetBSD: pdb.c,v 1.16 2010/06/10 06:28:33 dholland Exp $ */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: pdb.c,v 1.15 2010/06/10 06:17:21 dholland Exp $");
+__RCSID("$NetBSD: pdb.c,v 1.16 2010/06/10 06:28:33 dholland Exp $");
 #endif
 
 #include <sys/types.h>
@@ -49,7 +49,7 @@
 #include "extern.h"
 #include "pathnames.h"
 
-static int check_junk(struct cmdinfo *);
+static int check_junk(const struct cmdinfo *);
 static void add_ci(const struct cmdinfo *, struct cmdinfo *);
 static void print_ci(const struct cmdinfo *, const struct cmdinfo *);
 
@@ -318,7 +318,7 @@
 }
 
 static int
-check_junk(struct cmdinfo *cip)
+check_junk(const struct cmdinfo *cip)
 {
        char *cp;
        size_t len;



Home | Main Index | Thread Index | Old Index