projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename functions to more understandable names
[oweals/busybox.git]
/
libbb
/
concat_path_file.c
diff --git
a/libbb/concat_path_file.c
b/libbb/concat_path_file.c
index 415b6a2fb48d42d2b35b3e6dfc0b7d3234caccb4..ef0d3282dfc310530e3a7acd272e75cf80494fb9 100644
(file)
--- a/
libbb/concat_path_file.c
+++ b/
libbb/concat_path_file.c
@@
-12,7
+12,6
@@
* not addition '/' if path name already have '/'
*/
* not addition '/' if path name already have '/'
*/
-#include <string.h>
#include "libbb.h"
char *concat_path_file(const char *path, const char *filename)
#include "libbb.h"
char *concat_path_file(const char *path, const char *filename)
@@
-24,5
+23,5
@@
char *concat_path_file(const char *path, const char *filename)
lc = last_char_is(path, '/');
while (*filename == '/')
filename++;
lc = last_char_is(path, '/');
while (*filename == '/')
filename++;
- return
bb_
xasprintf("%s%s%s", path, (lc==NULL ? "/" : ""), filename);
+ return xasprintf("%s%s%s", path, (lc==NULL ? "/" : ""), filename);
}
}