Module Name: src Committed By: dholland Date: Thu Jun 10 06:28:33 UTC 2010
Modified Files: src/usr.sbin/sa: main.c pdb.c Log Message: sprinkle some const To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/usr.sbin/sa/main.c cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/sa/pdb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/sa/main.c diff -u src/usr.sbin/sa/main.c:1.27 src/usr.sbin/sa/main.c:1.28 --- src/usr.sbin/sa/main.c:1.27 Thu Jun 10 06:17:21 2010 +++ src/usr.sbin/sa/main.c Thu Jun 10 06:28:33 2010 @@ -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; Index: src/usr.sbin/sa/pdb.c diff -u src/usr.sbin/sa/pdb.c:1.15 src/usr.sbin/sa/pdb.c:1.16 --- src/usr.sbin/sa/pdb.c:1.15 Thu Jun 10 06:17:21 2010 +++ src/usr.sbin/sa/pdb.c Thu Jun 10 06:28:33 2010 @@ -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;