aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-01-30 22:48:39 +0000
committerEric Andersen <andersen@codepoet.org>2006-01-30 22:48:39 +0000
commita68ea1cb93c29125bc4f30ddd415fca02249e010 (patch)
tree5741be315758b807145c24da9ff3a1dbf8fce4e8 /procps
parent9a58b02ec75caafb7214f1ad0317f9a4830cbd2a (diff)
downloadbusybox-w32-a68ea1cb93c29125bc4f30ddd415fca02249e010.tar.gz
busybox-w32-a68ea1cb93c29125bc4f30ddd415fca02249e010.tar.bz2
busybox-w32-a68ea1cb93c29125bc4f30ddd415fca02249e010.zip
fix up yet more annoying signed/unsigned and mixed type errors
Diffstat (limited to 'procps')
-rw-r--r--procps/fuser.c4
-rw-r--r--procps/sysctl.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/procps/fuser.c b/procps/fuser.c
index 7ee56fbd9..c0101e635 100644
--- a/procps/fuser.c
+++ b/procps/fuser.c
@@ -143,7 +143,7 @@ static int fuser_scan_proc_net(int opts, const char *proto,
143 char addr[128]; 143 char addr[128];
144 ino_t tmp_inode; 144 ino_t tmp_inode;
145 dev_t tmp_dev; 145 dev_t tmp_dev;
146 uint64_t uint64_inode; 146 long long uint64_inode;
147 int tmp_port; 147 int tmp_port;
148 FILE *f; 148 FILE *f;
149 149
@@ -194,7 +194,7 @@ static int fuser_scan_pid_maps(int opts, const char *fname, pid_t pid,
194 char line[FUSER_MAX_LINE + 1]; 194 char line[FUSER_MAX_LINE + 1];
195 int major, minor; 195 int major, minor;
196 ino_t inode; 196 ino_t inode;
197 uint64_t uint64_inode; 197 long long uint64_inode;
198 dev_t dev; 198 dev_t dev;
199 199
200 if (!(file = fopen(fname, "r"))) return 0; 200 if (!(file = fopen(fname, "r"))) return 0;
diff --git a/procps/sysctl.c b/procps/sysctl.c
index dbb82e69c..b8835c0d8 100644
--- a/procps/sysctl.c
+++ b/procps/sysctl.c
@@ -209,7 +209,7 @@ int sysctl_write_setting(const char *setting, int output)
209 return -2; 209 return -2;
210 } 210 }
211 211
212 tmpname = bb_xasprintf("%s%.*s", PROC_PATH, (equals - name), name); 212 tmpname = bb_xasprintf("%s%.*s", PROC_PATH, (int)(equals - name), name);
213 outname = bb_xstrdup(tmpname + strlen(PROC_PATH)); 213 outname = bb_xstrdup(tmpname + strlen(PROC_PATH));
214 214
215 while ((cptr = strchr(tmpname, '.')) != NULL) 215 while ((cptr = strchr(tmpname, '.')) != NULL)