diff options
author | ed <ed@FreeBSD.org> | 2011-11-06 19:01:35 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-06 19:01:35 +0000 |
commit | b99d6c2ed3dc383ae665b822fa97016aff636e94 (patch) | |
tree | 7d7984a1a8ea9bec1e225fb8d9529f1c1097cafc | |
parent | 13541c14c5b0db85e19d8da986d0b2fb2c0ccf19 (diff) | |
download | FreeBSD-src-b99d6c2ed3dc383ae665b822fa97016aff636e94.zip FreeBSD-src-b99d6c2ed3dc383ae665b822fa97016aff636e94.tar.gz |
Mark global functions and/or variables in boot0cfg(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
-rw-r--r-- | usr.sbin/boot0cfg/boot0cfg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/boot0cfg/boot0cfg.c b/usr.sbin/boot0cfg/boot0cfg.c index 37ca140..cd69384 100644 --- a/usr.sbin/boot0cfg/boot0cfg.c +++ b/usr.sbin/boot0cfg/boot0cfg.c @@ -60,13 +60,13 @@ struct opt_offsets { int ticks; }; -struct opt_offsets b0_ofs[] = { +static struct opt_offsets b0_ofs[] = { { 0x0, 0x0, 0x0, 0x0 }, /* no boot block */ { 0x1b9, 0x1ba, 0x1bb, 0x1bc }, /* original block */ { 0x1b5, 0x1b6, 0x1b7, 0x1bc }, /* NT_SERIAL block */ }; -int b0_ver; /* boot block version set by boot0bs */ +static int b0_ver; /* boot block version set by boot0bs */ #define OFF_OPT (b0_ofs[b0_ver].opt) /* default boot option */ #define OFF_DRIVE (b0_ofs[b0_ver].drive) /* setdrv drive */ @@ -106,9 +106,9 @@ static int argtoi(const char *, int, int, int); static int set_bell(u_int8_t *, int, int); static void usage(void); -unsigned vol_id[5]; /* 4 plus 1 for flag */ +static unsigned vol_id[5]; /* 4 plus 1 for flag */ -int v_flag; +static int v_flag; /* * Boot manager installation/configuration utility. */ |