tls: prepare for ECDH_anon ciphers
[oweals/busybox.git] / libbb / skip_whitespace.c
index 7b123261b1a7d6ad05196258e6f2ca3fa2f742c9..37a24d3be632834d1a7671a87aac8723a37a59fd 100644 (file)
@@ -4,9 +4,8 @@
  *
  * 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"
 
 char* FAST_FUNC skip_whitespace(const char *s)
@@ -30,3 +29,9 @@ char* FAST_FUNC skip_non_whitespace(const char *s)
 
        return (char *) s;
 }
+
+char* FAST_FUNC skip_dev_pfx(const char *tty_name)
+{
+       char *unprefixed = is_prefixed_with(tty_name, "/dev/");
+       return unprefixed ? unprefixed : (char*)tty_name;
+}