projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
file_util.c cleanups. Remove redundant str_chomp from str_util.c.
[oweals/opkg-lede.git]
/
libopkg
/
str_util.c
diff --git
a/libopkg/str_util.c
b/libopkg/str_util.c
index d583b7a8ee6f895e09564c8a14dca1f3ff284ba3..58fdb9c6d2b116953669dd9842b259c98af6c6da 100644
(file)
--- a/
libopkg/str_util.c
+++ b/
libopkg/str_util.c
@@
-37,15
+37,6
@@
int str_ends_with(const char *str, const char *suffix)
return (strcmp(str + str_len - suffix_len, suffix) == 0);
}
-int str_chomp(char *str)
-{
- if (str[strlen(str) - 1] == '\n') {
- str[strlen(str) - 1] = '\0';
- return 1;
- }
- return 0;
-}
-
int str_tolower(char *str)
{
while (*str) {