aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authormarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-23 22:30:04 +0000
committermarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-23 22:30:04 +0000
commitb2b4893698607c194acfd2e355154b54273b8880 (patch)
tree852d97bdc34c44dbcf29cc8b5cd9257a8c90f7b3 /util-linux
parentfc2d2e3371dbe137decc3aa2065acd6140226f94 (diff)
downloadbusybox-w32-b2b4893698607c194acfd2e355154b54273b8880.tar.gz
busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.tar.bz2
busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.zip
#define -> static const int. Also got rid of some big static buffers.
git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fbset.c94
-rw-r--r--util-linux/fsck_minix.c38
-rw-r--r--util-linux/getopt.c6
-rw-r--r--util-linux/mkswap.c2
-rw-r--r--util-linux/mount.c30
-rw-r--r--util-linux/nfsmount.c61
-rw-r--r--util-linux/rdate.c2
-rw-r--r--util-linux/swaponoff.c4
-rw-r--r--util-linux/umount.c8
9 files changed, 121 insertions, 124 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 40a907b07..845be8442 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -36,53 +36,55 @@
36#define DEFAULTFBDEV "/dev/fb0" 36#define DEFAULTFBDEV "/dev/fb0"
37#define DEFAULTFBMODE "/etc/fb.modes" 37#define DEFAULTFBMODE "/etc/fb.modes"
38 38
39#define OPT_CHANGE 1 39static const int OPT_CHANGE = (1 << 0);
40#define OPT_INFO (1 << 1) 40static const int OPT_INFO = (1 << 1);
41#define OPT_READMODE (1 << 2) 41static const int OPT_READMODE = (1 << 2);
42 42
43#define CMD_HELP 0 43enum {
44#define CMD_FB 1 44 CMD_HELP = 0,
45#define CMD_DB 2 45 CMD_FB = 1,
46#define CMD_GEOMETRY 3 46 CMD_DB = 2,
47#define CMD_TIMING 4 47 CMD_GEOMETRY = 3,
48#define CMD_ACCEL 5 48 CMD_TIMING = 4,
49#define CMD_HSYNC 6 49 CMD_ACCEL = 5,
50#define CMD_VSYNC 7 50 CMD_HSYNC = 6,
51#define CMD_LACED 8 51 CMD_VSYNC = 7,
52#define CMD_DOUBLE 9 52 CMD_LACED = 8,
53/* #define CMD_XCOMPAT 10 */ 53 CMD_DOUBLE = 9,
54#define CMD_ALL 11 54/* CMD_XCOMPAT = 10, */
55#define CMD_INFO 12 55 CMD_ALL = 11,
56#define CMD_CHANGE 13 56 CMD_INFO = 12,
57 CMD_CHANGE = 13,
57 58
58#ifdef BB_FEATURE_FBSET_FANCY 59#ifdef BB_FEATURE_FBSET_FANCY
59#define CMD_XRES 100 60 CMD_XRES = 100,
60#define CMD_YRES 101 61 CMD_YRES = 101,
61#define CMD_VXRES 102 62 CMD_VXRES = 102,
62#define CMD_VYRES 103 63 CMD_VYRES = 103,
63#define CMD_DEPTH 104 64 CMD_DEPTH = 104,
64#define CMD_MATCH 105 65 CMD_MATCH = 105,
65#define CMD_PIXCLOCK 106 66 CMD_PIXCLOCK = 106,
66#define CMD_LEFT 107 67 CMD_LEFT = 107,
67#define CMD_RIGHT 108 68 CMD_RIGHT = 108,
68#define CMD_UPPER 109 69 CMD_UPPER = 109,
69#define CMD_LOWER 110 70 CMD_LOWER = 110,
70#define CMD_HSLEN 111 71 CMD_HSLEN = 111,
71#define CMD_VSLEN 112 72 CMD_VSLEN = 112,
72#define CMD_CSYNC 113 73 CMD_CSYNC = 113,
73#define CMD_GSYNC 114 74 CMD_GSYNC = 114,
74#define CMD_EXTSYNC 115 75 CMD_EXTSYNC = 115,
75#define CMD_BCAST 116 76 CMD_BCAST = 116,
76#define CMD_RGBA 117 77 CMD_RGBA = 117,
77#define CMD_STEP 118 78 CMD_STEP = 118,
78#define CMD_MOVE 119 79 CMD_MOVE = 119,
79#endif 80#endif
81};
80 82
81static unsigned int g_options = 0; 83static unsigned int g_options = 0;
82 84
83/* Stuff stolen from the kernel's fb.h */ 85/* Stuff stolen from the kernel's fb.h */
84#define FBIOGET_VSCREENINFO 0x4600 86static const int FBIOGET_VSCREENINFO = 0x4600;
85#define FBIOPUT_VSCREENINFO 0x4601 87static const int FBIOPUT_VSCREENINFO = 0x4601;
86#define __u32 unsigned int 88#define __u32 unsigned int
87struct fb_bitfield { 89struct fb_bitfield {
88 __u32 offset; /* beginning of bitfield */ 90 __u32 offset; /* beginning of bitfield */
@@ -180,12 +182,12 @@ struct cmdoptions_t {
180 182
181#ifdef BB_FEATURE_FBSET_READMODE 183#ifdef BB_FEATURE_FBSET_READMODE
182/* taken from linux/fb.h */ 184/* taken from linux/fb.h */
183#define FB_VMODE_INTERLACED 1 /* interlaced */ 185static const int FB_VMODE_INTERLACED = 1; /* interlaced */
184#define FB_VMODE_DOUBLE 2 /* double scan */ 186static const int FB_VMODE_DOUBLE = 2; /* double scan */
185#define FB_SYNC_HOR_HIGH_ACT 1 /* horizontal sync high active */ 187static const int FB_SYNC_HOR_HIGH_ACT = 1; /* horizontal sync high active */
186#define FB_SYNC_VERT_HIGH_ACT 2 /* vertical sync high active */ 188static const int FB_SYNC_VERT_HIGH_ACT = 2; /* vertical sync high active */
187#define FB_SYNC_EXT 4 /* external sync */ 189static const int FB_SYNC_EXT = 4; /* external sync */
188#define FB_SYNC_COMP_HIGH_ACT 8 /* composite sync high active */ 190static const int FB_SYNC_COMP_HIGH_ACT = 8; /* composite sync high active */
189#endif 191#endif
190static int readmode(struct fb_var_screeninfo *base, const char *fn, 192static int readmode(struct fb_var_screeninfo *base, const char *fn,
191 const char *mode) 193 const char *mode)
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index b35e6bb07..18841ec56 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -104,24 +104,24 @@ typedef unsigned short u16;
104typedef unsigned int u32; 104typedef unsigned int u32;
105 105
106 106
107#define MINIX_ROOT_INO 1 107static const int MINIX_ROOT_INO = 1;
108#define MINIX_LINK_MAX 250 108static const int MINIX_LINK_MAX = 250;
109#define MINIX2_LINK_MAX 65530 109static const int MINIX2_LINK_MAX = 65530;
110 110
111#define MINIX_I_MAP_SLOTS 8 111static const int MINIX_I_MAP_SLOTS = 8;
112#define MINIX_Z_MAP_SLOTS 64 112static const int MINIX_Z_MAP_SLOTS = 64;
113#define MINIX_SUPER_MAGIC 0x137F /* original minix fs */ 113static const int MINIX_SUPER_MAGIC = 0x137F; /* original minix fs */
114#define MINIX_SUPER_MAGIC2 0x138F /* minix fs, 30 char names */ 114static const int MINIX_SUPER_MAGIC2 = 0x138F; /* minix fs, 30 char names */
115#define MINIX2_SUPER_MAGIC 0x2468 /* minix V2 fs */ 115static const int MINIX2_SUPER_MAGIC = 0x2468; /* minix V2 fs */
116#define MINIX2_SUPER_MAGIC2 0x2478 /* minix V2 fs, 30 char names */ 116static const int MINIX2_SUPER_MAGIC2 = 0x2478; /* minix V2 fs, 30 char names */
117#define MINIX_VALID_FS 0x0001 /* Clean fs. */ 117static const int MINIX_VALID_FS = 0x0001; /* Clean fs. */
118#define MINIX_ERROR_FS 0x0002 /* fs has errors. */ 118static const int MINIX_ERROR_FS = 0x0002; /* fs has errors. */
119 119
120#define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode))) 120#define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode)))
121#define MINIX2_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix2_inode))) 121#define MINIX2_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix2_inode)))
122 122
123#define MINIX_V1 0x0001 /* original minix fs */ 123static const int MINIX_V1 = 0x0001; /* original minix fs */
124#define MINIX_V2 0x0002 /* minix V2 fs */ 124static const int MINIX_V2 = 0x0002; /* minix V2 fs */
125 125
126#define INODE_VERSION(inode) inode->i_sb->u.minix_sb.s_version 126#define INODE_VERSION(inode) inode->i_sb->u.minix_sb.s_version
127 127
@@ -185,12 +185,6 @@ struct minix_dir_entry {
185 185
186#define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode))) 186#define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode)))
187 187
188#define MINIX_VALID_FS 0x0001 /* Clean fs. */
189#define MINIX_ERROR_FS 0x0002 /* fs has errors. */
190
191#define MINIX_SUPER_MAGIC 0x137F /* original minix fs */
192#define MINIX_SUPER_MAGIC2 0x138F /* minix fs, 30 char names */
193
194#ifndef BLKGETSIZE 188#ifndef BLKGETSIZE
195#define BLKGETSIZE _IO(0x12,96) /* return device size */ 189#define BLKGETSIZE _IO(0x12,96) /* return device size */
196#endif 190#endif
@@ -199,7 +193,7 @@ struct minix_dir_entry {
199#define volatile 193#define volatile
200#endif 194#endif
201 195
202#define ROOT_INO 1 196static const int ROOT_INO = 1;
203 197
204#define UPPER(size,n) ((size+((n)-1))/(n)) 198#define UPPER(size,n) ((size+((n)-1))/(n))
205#define INODE_SIZE (sizeof(struct minix_inode)) 199#define INODE_SIZE (sizeof(struct minix_inode))
@@ -231,7 +225,7 @@ static struct termios termios;
231static int termios_set = 0; 225static int termios_set = 0;
232 226
233/* File-name data */ 227/* File-name data */
234#define MAX_DEPTH 32 228static const int MAX_DEPTH = 32;
235static int name_depth = 0; 229static int name_depth = 0;
236// static char name_list[MAX_DEPTH][BUFSIZ + 1]; 230// static char name_list[MAX_DEPTH][BUFSIZ + 1];
237static char **name_list = NULL; 231static char **name_list = NULL;
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index 0ebf9df08..ff55a3e3c 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -53,9 +53,9 @@
53 53
54/* NON_OPT is the code that is returned when a non-option is found in '+' 54/* NON_OPT is the code that is returned when a non-option is found in '+'
55 mode */ 55 mode */
56#define NON_OPT 1 56static const int NON_OPT = 1;
57/* LONG_OPT is the code that is returned when a long option is found. */ 57/* LONG_OPT is the code that is returned when a long option is found. */
58#define LONG_OPT 2 58static const int LONG_OPT = 2;
59 59
60/* The shells recognized. */ 60/* The shells recognized. */
61typedef enum {BASH,TCSH} shell_t; 61typedef enum {BASH,TCSH} shell_t;
@@ -199,7 +199,7 @@ int generate_output(char * argv[],int argc,const char *optstr,
199static struct option *long_options=NULL; 199static struct option *long_options=NULL;
200static int long_options_length=0; /* Length of array */ 200static int long_options_length=0; /* Length of array */
201static int long_options_nr=0; /* Nr of used elements in array */ 201static int long_options_nr=0; /* Nr of used elements in array */
202#define LONG_OPTIONS_INCR 10 202static const int LONG_OPTIONS_INCR = 10;
203#define init_longopt() add_longopt(NULL,0) 203#define init_longopt() add_longopt(NULL,0)
204 204
205/* Register a long option. The contents of name is copied. */ 205/* Register a long option. The contents of name is copied. */
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index e7fab4e07..5b908daa3 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -48,7 +48,7 @@
48 48
49#ifndef _IO 49#ifndef _IO
50/* pre-1.3.45 */ 50/* pre-1.3.45 */
51#define BLKGETSIZE 0x1260 51static const int BLKGETSIZE = 0x1260;
52#else 52#else
53/* same on i386, m68k, arm; different on alpha, mips, sparc, ppc */ 53/* same on i386, m68k, arm; different on alpha, mips, sparc, ppc */
54#define BLKGETSIZE _IO(0x12,96) 54#define BLKGETSIZE _IO(0x12,96)
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 88e45fc72..f78786ebc 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -55,21 +55,21 @@
55#include <linux/devmtab.h> /* For Erik's nifty devmtab device driver */ 55#include <linux/devmtab.h> /* For Erik's nifty devmtab device driver */
56#endif 56#endif
57 57
58 58enum {
59#define MS_MGC_VAL 0xc0ed0000 /* Magic number indicatng "new" flags */ 59 MS_MGC_VAL = 0xc0ed0000, /* Magic number indicatng "new" flags */
60#define MS_RDONLY 1 /* Mount read-only */ 60 MS_RDONLY = 1, /* Mount read-only */
61#define MS_NOSUID 2 /* Ignore suid and sgid bits */ 61 MS_NOSUID = 2, /* Ignore suid and sgid bits */
62#define MS_NODEV 4 /* Disallow access to device special files */ 62 MS_NODEV = 4, /* Disallow access to device special files */
63#define MS_NOEXEC 8 /* Disallow program execution */ 63 MS_NOEXEC = 8, /* Disallow program execution */
64#define MS_SYNCHRONOUS 16 /* Writes are synced at once */ 64 MS_SYNCHRONOUS = 16, /* Writes are synced at once */
65#define MS_REMOUNT 32 /* Alter flags of a mounted FS */ 65 MS_REMOUNT = 32, /* Alter flags of a mounted FS */
66#define MS_MANDLOCK 64 /* Allow mandatory locks on an FS */ 66 MS_MANDLOCK = 64, /* Allow mandatory locks on an FS */
67#define S_QUOTA 128 /* Quota initialized for file/directory/symlink */ 67 S_QUOTA = 128, /* Quota initialized for file/directory/symlink */
68#define S_APPEND 256 /* Append-only file */ 68 S_APPEND = 256, /* Append-only file */
69#define S_IMMUTABLE 512 /* Immutable file */ 69 S_IMMUTABLE = 512, /* Immutable file */
70#define MS_NOATIME 1024 /* Do not update access times. */ 70 MS_NOATIME = 1024, /* Do not update access times. */
71#define MS_NODIRATIME 2048 /* Do not update directory access times */ 71 MS_NODIRATIME = 2048, /* Do not update directory access times */
72 72};
73 73
74 74
75#if defined BB_FEATURE_MOUNT_LOOP 75#if defined BB_FEATURE_MOUNT_LOOP
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index b5c38212a..d661a99a4 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -54,10 +54,10 @@
54#include <linux/nfs.h> /* For the kernels nfs stuff */ 54#include <linux/nfs.h> /* For the kernels nfs stuff */
55 55
56#ifndef NFS_FHSIZE 56#ifndef NFS_FHSIZE
57#define NFS_FHSIZE 32 57static const int NFS_FHSIZE = 32;
58#endif 58#endif
59#ifndef NFS_PORT 59#ifndef NFS_PORT
60#define NFS_PORT 2049 60static const int NFS_PORT = 2049;
61#endif 61#endif
62 62
63/* Disable the nls stuff */ 63/* Disable the nls stuff */
@@ -68,19 +68,19 @@
68# define _(Text) (Text) 68# define _(Text) (Text)
69# define N_(Text) (Text) 69# define N_(Text) (Text)
70 70
71#define MS_MGC_VAL 0xc0ed0000 /* Magic number indicatng "new" flags */ 71static const int MS_MGC_VAL = 0xc0ed0000; /* Magic number indicatng "new" flags */
72#define MS_RDONLY 1 /* Mount read-only */ 72static const int MS_RDONLY = 1; /* Mount read-only */
73#define MS_NOSUID 2 /* Ignore suid and sgid bits */ 73static const int MS_NOSUID = 2; /* Ignore suid and sgid bits */
74#define MS_NODEV 4 /* Disallow access to device special files */ 74static const int MS_NODEV = 4; /* Disallow access to device special files */
75#define MS_NOEXEC 8 /* Disallow program execution */ 75static const int MS_NOEXEC = 8; /* Disallow program execution */
76#define MS_SYNCHRONOUS 16 /* Writes are synced at once */ 76static const int MS_SYNCHRONOUS = 16; /* Writes are synced at once */
77#define MS_REMOUNT 32 /* Alter flags of a mounted FS */ 77static const int MS_REMOUNT = 32; /* Alter flags of a mounted FS */
78#define MS_MANDLOCK 64 /* Allow mandatory locks on an FS */ 78static const int MS_MANDLOCK = 64; /* Allow mandatory locks on an FS */
79#define S_QUOTA 128 /* Quota initialized for file/directory/symlink */ 79static const int S_QUOTA = 128; /* Quota initialized for file/directory/symlink */
80#define S_APPEND 256 /* Append-only file */ 80static const int S_APPEND = 256; /* Append-only file */
81#define S_IMMUTABLE 512 /* Immutable file */ 81static const int S_IMMUTABLE = 512; /* Immutable file */
82#define MS_NOATIME 1024 /* Do not update access times. */ 82static const int MS_NOATIME = 1024; /* Do not update access times. */
83#define MS_NODIRATIME 2048 /* Do not update directory access times */ 83static const int MS_NODIRATIME = 2048; /* Do not update directory access times */
84 84
85 85
86/* 86/*
@@ -93,7 +93,7 @@
93 * so it is easiest to ignore the kernel altogether (at compile time). 93 * so it is easiest to ignore the kernel altogether (at compile time).
94 */ 94 */
95 95
96#define NFS_MOUNT_VERSION 4 96static const int NFS_MOUNT_VERSION = 4;
97 97
98struct nfs2_fh { 98struct nfs2_fh {
99 char data[32]; 99 char data[32];
@@ -125,16 +125,16 @@ struct nfs_mount_data {
125 125
126/* bits in the flags field */ 126/* bits in the flags field */
127 127
128#define NFS_MOUNT_SOFT 0x0001 /* 1 */ 128static const int NFS_MOUNT_SOFT = 0x0001; /* 1 */
129#define NFS_MOUNT_INTR 0x0002 /* 1 */ 129static const int NFS_MOUNT_INTR = 0x0002; /* 1 */
130#define NFS_MOUNT_SECURE 0x0004 /* 1 */ 130static const int NFS_MOUNT_SECURE = 0x0004; /* 1 */
131#define NFS_MOUNT_POSIX 0x0008 /* 1 */ 131static const int NFS_MOUNT_POSIX = 0x0008; /* 1 */
132#define NFS_MOUNT_NOCTO 0x0010 /* 1 */ 132static const int NFS_MOUNT_NOCTO = 0x0010; /* 1 */
133#define NFS_MOUNT_NOAC 0x0020 /* 1 */ 133static const int NFS_MOUNT_NOAC = 0x0020; /* 1 */
134#define NFS_MOUNT_TCP 0x0040 /* 2 */ 134static const int NFS_MOUNT_TCP = 0x0040; /* 2 */
135#define NFS_MOUNT_VER3 0x0080 /* 3 */ 135static const int NFS_MOUNT_VER3 = 0x0080; /* 3 */
136#define NFS_MOUNT_KERBEROS 0x0100 /* 3 */ 136static const int NFS_MOUNT_KERBEROS = 0x0100; /* 3 */
137#define NFS_MOUNT_NONLM 0x0200 /* 3 */ 137static const int NFS_MOUNT_NONLM = 0x0200; /* 3 */
138 138
139 139
140#define UTIL_LINUX_VERSION "2.10m" 140#define UTIL_LINUX_VERSION "2.10m"
@@ -160,14 +160,14 @@ static char *nfs_strerror(int stat);
160#define MAKE_VERSION(p,q,r) (65536*(p) + 256*(q) + (r)) 160#define MAKE_VERSION(p,q,r) (65536*(p) + 256*(q) + (r))
161#define MAX_NFSPROT ((nfs_mount_version >= 4) ? 3 : 2) 161#define MAX_NFSPROT ((nfs_mount_version >= 4) ? 3 : 2)
162 162
163#define EX_FAIL 32 /* mount failure */ 163static const int EX_FAIL = 32; /* mount failure */
164#define EX_BG 256 /* retry in background (internal only) */ 164static const int EX_BG = 256; /* retry in background (internal only) */
165 165
166 166
167/* 167/*
168 * nfs_mount_version according to the sources seen at compile time. 168 * nfs_mount_version according to the sources seen at compile time.
169 */ 169 */
170int nfs_mount_version = NFS_MOUNT_VERSION; 170static int nfs_mount_version;
171 171
172/* 172/*
173 * Unfortunately, the kernel prints annoying console messages 173 * Unfortunately, the kernel prints annoying console messages
@@ -187,8 +187,9 @@ find_kernel_nfs_mount_version(void) {
187 if (kernel_version) 187 if (kernel_version)
188 return; 188 return;
189 189
190 kernel_version = get_kernel_revision(); 190 nfs_mount_version = NFS_MOUNT_VERSION; /* default */
191 191
192 kernel_version = get_kernel_revision();
192 if (kernel_version) { 193 if (kernel_version) {
193 if (kernel_version < MAKE_VERSION(2,1,32)) 194 if (kernel_version < MAKE_VERSION(2,1,32))
194 nfs_mount_version = 1; 195 nfs_mount_version = 1;
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index bb5392746..954982ae9 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -33,7 +33,7 @@
33#include <getopt.h> 33#include <getopt.h>
34 34
35 35
36#define RFC_868_BIAS 2208988800UL 36static const int RFC_868_BIAS = 2208988800UL;
37 37
38int setdate= 0; 38int setdate= 0;
39int printdate= 0; 39int printdate= 0;
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 85f338932..eda15100b 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -35,8 +35,8 @@ _syscall1(int, swapoff, const char *, path);
35 35
36static int whichApp; 36static int whichApp;
37 37
38#define SWAPON_APP 1 38static const int SWAPON_APP = 1;
39#define SWAPOFF_APP 2 39static const int SWAPOFF_APP = 2;
40 40
41 41
42static void swap_enable_disable(char *device) 42static void swap_enable_disable(char *device)
diff --git a/util-linux/umount.c b/util-linux/umount.c
index 40d25f90a..2e2d95de4 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -28,10 +28,10 @@
28#include <errno.h> 28#include <errno.h>
29 29
30 30
31#define MNT_FORCE 1 31static const int MNT_FORCE = 1;
32#define MS_MGC_VAL 0xc0ed0000 /* Magic number indicatng "new" flags */ 32static const int MS_MGC_VAL = 0xc0ed0000; /* Magic number indicatng "new" flags */
33#define MS_REMOUNT 32 /* Alter flags of a mounted FS. */ 33static const int MS_REMOUNT = 32; /* Alter flags of a mounted FS. */
34#define MS_RDONLY 1 /* Mount read-only. */ 34static const int MS_RDONLY = 1; /* Mount read-only. */
35 35
36extern int mount (__const char *__special_file, __const char *__dir, 36extern int mount (__const char *__special_file, __const char *__dir,
37 __const char *__fstype, unsigned long int __rwflag, 37 __const char *__fstype, unsigned long int __rwflag,