1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-06 13:09:50 +00:00

Code style tweaks: Use static and const where suitable.

This commit is contained in:
Xin LI 2005-01-25 08:24:06 +00:00
parent faa0ecdd5d
commit 36737a0b77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140795

View File

@ -56,19 +56,18 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#include <unistd.h>
void usage(void);
u_int get_pageins(void);
static void usage(void);
static u_int get_pageins(void);
int dohalt;
int
main(int argc, char *argv[])
{
struct passwd *pw;
const struct passwd *pw;
int ch, howto, i, fd, lflag, nflag, qflag, pflag, sverrno;
u_int pageins;
char *kernel = NULL, *p;
const char *user;
const char *p, *user, *kernel = NULL;
if (strstr((p = rindex(*argv, '/')) ? p + 1 : *argv, "halt")) {
dohalt = 1;
@ -203,7 +202,7 @@ main(int argc, char *argv[])
/* NOTREACHED */
}
void
static void
usage()
{
(void)fprintf(stderr, "usage: %s [-dnpq] [-k kernel]\n",
@ -211,7 +210,7 @@ usage()
exit(1);
}
u_int
static u_int
get_pageins()
{
u_int pageins;