X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libpwdgrp%2Fpwd_grp.c;h=132ec60be3744301703d733c436d3f40eb26e031;hb=59fe8b90890a07c87ec9c2943bae515d5c6d959d;hp=f45c6317ec4fc8cc8695524af978f7fcf6d37c64;hpb=06ec8cff83bf7c71b66027b28f7873f7e3b95eba;p=oweals%2Fbusybox.git diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c index f45c6317e..132ec60be 100644 --- a/libpwdgrp/pwd_grp.c +++ b/libpwdgrp/pwd_grp.c @@ -1,3 +1,4 @@ +/* vi: set sw=4 ts=4: */ /* Copyright (C) 2003 Manuel Novoa III * * Licensed under GPL v2, or later. See file LICENSE in this tarball. @@ -17,6 +18,7 @@ * */ +#include "libbb.h" #include #include #include @@ -26,9 +28,7 @@ #include #include #include -#include "busybox.h" -#include "pwd_.h" -#include "grp_.h" + #include "shadow_.h" #ifndef _PATH_SHADOW @@ -989,19 +989,6 @@ int __parsespent(void *data, char * line) break; } } else { -#if 0 - if (i==5) { /* Support for old format. */ - while (isspace(*line)) ++line; /* glibc eats space here. */ - if (!*line) { - ((struct spwd *) data)->sp_warn = -1; - ((struct spwd *) data)->sp_inact = -1; - ((struct spwd *) data)->sp_expire = -1; - ((struct spwd *) data)->sp_flag = ~0UL; - return 0; - } - } -#endif - *((long *) p) = (long) strtoul(line, &endptr, 10); if (endptr == line) {