summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2005-10-20 11:17:48 +0000
committer"Vladimir N. Oleynik"2005-10-20 11:17:48 +0000
commit1f0262bcdb352e9a75a4e5f48cd63d05714e2859 (patch)
treee191e1f4019e7b0daf47f9077e375588f77b3c6a /util-linux
parent0fa9deda1706b19e5f42ed392483a582880aaca3 (diff)
downloadbusybox-1f0262bcdb352e9a75a4e5f48cd63d05714e2859.zip
busybox-1f0262bcdb352e9a75a4e5f48cd63d05714e2859.tar.gz
another more const
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/nfsmount.c2
-rw-r--r--util-linux/readprofile.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index 11ca326..842fa03 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -889,7 +889,7 @@ fail:
#define EDQUOT ENOSPC
#endif
-static struct {
+static const struct {
enum nfs_stat stat;
int errnum;
} nfs_errtbl[] = {
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c
index 5144de7..80716d9 100644
--- a/util-linux/readprofile.c
+++ b/util-linux/readprofile.c
@@ -58,14 +58,14 @@
#define S_LEN 128
/* These are the defaults */
-static char defaultmap[]="/boot/System.map";
-static char defaultpro[]="/proc/profile";
+static const char defaultmap[]="/boot/System.map";
+static const char defaultpro[]="/proc/profile";
int readprofile_main(int argc, char **argv)
{
FILE *map;
int proFd;
- char *mapFile, *proFile, *mult=0;
+ const char *mapFile, *proFile, *mult=0;
unsigned long len=0, indx=1;
unsigned long long add0=0;
unsigned int step;