projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shell: syncronize ash and hush heredoc1.tests
[oweals/busybox.git]
/
libbb
/
skip_whitespace.c
diff --git
a/libbb/skip_whitespace.c
b/libbb/skip_whitespace.c
index f5a61a3cf9b4d88663a3317465b293c23d94eb5e..b6cfbba4dc8c44c707779360e74ad9c743665e81 100644
(file)
--- a/
libbb/skip_whitespace.c
+++ b/
libbb/skip_whitespace.c
@@
-4,7
+4,7
@@
*
* Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org>
*
*
* Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org>
*
- * Licensed under GPLv2 or later, see file LICENSE in this
tarball for details
.
+ * Licensed under GPLv2 or later, see file LICENSE in this
source tree
.
*/
#include "libbb.h"
*/
#include "libbb.h"
@@
-33,7
+33,7
@@
char* FAST_FUNC skip_non_whitespace(const char *s)
char* FAST_FUNC skip_dev_pfx(const char *tty_name)
{
char* FAST_FUNC skip_dev_pfx(const char *tty_name)
{
- if (
strncmp(tty_name, "/dev/", 5) == 0
)
+ if (
is_prefixed_with(tty_name, "/dev/")
)
tty_name += 5;
return (char*)tty_name;
}
tty_name += 5;
return (char*)tty_name;
}