diff options
author | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2005-10-20 11:17:48 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2005-10-20 11:17:48 +0000 |
commit | 1f0262bcdb352e9a75a4e5f48cd63d05714e2859 (patch) | |
tree | e191e1f4019e7b0daf47f9077e375588f77b3c6a /util-linux | |
parent | 0fa9deda1706b19e5f42ed392483a582880aaca3 (diff) | |
download | busybox-w32-1f0262bcdb352e9a75a4e5f48cd63d05714e2859.tar.gz busybox-w32-1f0262bcdb352e9a75a4e5f48cd63d05714e2859.tar.bz2 busybox-w32-1f0262bcdb352e9a75a4e5f48cd63d05714e2859.zip |
another more const
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/nfsmount.c | 2 | ||||
-rw-r--r-- | util-linux/readprofile.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c index 11ca3268e..842fa0351 100644 --- a/util-linux/nfsmount.c +++ b/util-linux/nfsmount.c | |||
@@ -889,7 +889,7 @@ fail: | |||
889 | #define EDQUOT ENOSPC | 889 | #define EDQUOT ENOSPC |
890 | #endif | 890 | #endif |
891 | 891 | ||
892 | static struct { | 892 | static const struct { |
893 | enum nfs_stat stat; | 893 | enum nfs_stat stat; |
894 | int errnum; | 894 | int errnum; |
895 | } nfs_errtbl[] = { | 895 | } nfs_errtbl[] = { |
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c index 5144de711..80716d9f0 100644 --- a/util-linux/readprofile.c +++ b/util-linux/readprofile.c | |||
@@ -58,14 +58,14 @@ | |||
58 | #define S_LEN 128 | 58 | #define S_LEN 128 |
59 | 59 | ||
60 | /* These are the defaults */ | 60 | /* These are the defaults */ |
61 | static char defaultmap[]="/boot/System.map"; | 61 | static const char defaultmap[]="/boot/System.map"; |
62 | static char defaultpro[]="/proc/profile"; | 62 | static const char defaultpro[]="/proc/profile"; |
63 | 63 | ||
64 | int readprofile_main(int argc, char **argv) | 64 | int readprofile_main(int argc, char **argv) |
65 | { | 65 | { |
66 | FILE *map; | 66 | FILE *map; |
67 | int proFd; | 67 | int proFd; |
68 | char *mapFile, *proFile, *mult=0; | 68 | const char *mapFile, *proFile, *mult=0; |
69 | unsigned long len=0, indx=1; | 69 | unsigned long len=0, indx=1; |
70 | unsigned long long add0=0; | 70 | unsigned long long add0=0; |
71 | unsigned int step; | 71 | unsigned int step; |