tar: support -T - and -X -
[oweals/busybox.git] / libbb / utmp.c
index d6ba336e3e36725544ce41ab8094039e68a4377b..09443fb6c42b1b58232176ed3250e1a487f93d8c 100644 (file)
@@ -4,10 +4,9 @@
  *
  * Copyright (C) 2010 Denys Vlasenko
  *
- * Licensed under GPL version 2, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2, see file LICENSE in this source tree.
  */
 #include "libbb.h"
-#include <utmp.h>
 
 static void touch(const char *filename)
 {
@@ -15,14 +14,6 @@ static void touch(const char *filename)
                close(open(filename, O_WRONLY | O_CREAT, 0664));
 }
 
-// TODO: move to libbb
-static const char* skip_dev_pfx(const char *tty_name)
-{
-       if (strncmp(tty_name, "/dev/", 5) == 0)
-               tty_name += 5;
-       return tty_name;
-}
-
 void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname)
 {
        struct utmp utent;