aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/dump.c2
-rw-r--r--libbb/get_last_path_component.c2
-rw-r--r--libbb/xfuncs.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/libbb/dump.c b/libbb/dump.c
index 1815ca914..f078afc1c 100644
--- a/libbb/dump.c
+++ b/libbb/dump.c
@@ -291,7 +291,7 @@ static void rewrite(FS * fs)
291 } 291 }
292} 292}
293 293
294static void do_skip(char *fname, int statok) 294static void do_skip(const char *fname, int statok)
295{ 295{
296 struct stat sbuf; 296 struct stat sbuf;
297 297
diff --git a/libbb/get_last_path_component.c b/libbb/get_last_path_component.c
index 311909726..b7bc0e626 100644
--- a/libbb/get_last_path_component.c
+++ b/libbb/get_last_path_component.c
@@ -26,7 +26,7 @@ char *bb_get_last_path_component(char *path)
26 if (*first == '/') { 26 if (*first == '/') {
27 last = first; 27 last = first;
28 } 28 }
29 last[1] = 0; 29 last[1] = '\0';
30 30
31 return first; 31 return first;
32} 32}
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 54d291ab1..601ff3f7e 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -184,7 +184,7 @@ pid_t spawn(char **argv)
184 /* Why static? */ 184 /* Why static? */
185 static int failed; 185 static int failed;
186 pid_t pid; 186 pid_t pid;
187 char *prog; 187 const char *prog;
188 188
189 // Be nice to nommu machines. 189 // Be nice to nommu machines.
190 failed = 0; 190 failed = 0;
@@ -240,7 +240,7 @@ void xsetenv(const char *key, const char *value)
240// Fifth char is always '\0' 240// Fifth char is always '\0'
241void smart_ulltoa5(unsigned long long ul, char buf[5]) 241void smart_ulltoa5(unsigned long long ul, char buf[5])
242{ 242{
243 char *fmt; 243 const char *fmt;
244 char c; 244 char c;
245 unsigned v,idx = 0; 245 unsigned v,idx = 0;
246 ul *= 10; 246 ul *= 10;