projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
opkg_download: print error when fork() fails
[oweals/opkg-lede.git]
/
libbb
/
last_char_is.c
diff --git
a/libbb/last_char_is.c
b/libbb/last_char_is.c
index 26c242369a2e2cb586e7666d3923757f4c42c52c..8c6dd6f0cb4b73d9f9eab2b5adf279765a7ee9a2 100644
(file)
--- a/
libbb/last_char_is.c
+++ b/
libbb/last_char_is.c
@@
-26,13
+26,13
@@
* underrun the buffer if the string length is 0. Also avoids a possible
* space-hogging inline of strlen() per usage.
*/
* underrun the buffer if the string length is 0. Also avoids a possible
* space-hogging inline of strlen() per usage.
*/
-char *
last_char_is(const char *s, int c)
+char *last_char_is(const char *s, int c)
{
char *sret;
if (!s)
{
char *sret;
if (!s)
- return NULL;
- sret
= (char *)s+strlen(s)-
1;
- if (sret
>=
s && *sret == c) {
+
return NULL;
+ sret
= (char *)s + strlen(s) -
1;
+ if (sret
>=
s && *sret == c) {
return sret;
} else {
return NULL;
return sret;
} else {
return NULL;