diff options
author | Denys Vlasenko | 2010-04-06 18:50:05 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-04-06 18:50:05 +0200 |
commit | f8d8aa1cea915ce115345e6e729eddc80e86f021 (patch) | |
tree | abceef94710d221816cf56343b7cadf10de50e5c /libbb/utmp.c | |
parent | 87fb72032e6aa6abe5ac8fb05d22f43e8dde557b (diff) | |
download | busybox-f8d8aa1cea915ce115345e6e729eddc80e86f021.zip busybox-f8d8aa1cea915ce115345e6e729eddc80e86f021.tar.gz |
libbb: add skip_dev_pfx()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/utmp.c')
-rw-r--r-- | libbb/utmp.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libbb/utmp.c b/libbb/utmp.c index d6ba336..68c358e 100644 --- a/libbb/utmp.c +++ b/libbb/utmp.c @@ -15,14 +15,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; |