There are a number of reasons for reinventing printf(). Writing status to
[oweals/busybox.git] / libpwdgrp / pwd_grp.c
index f45c6317ec4fc8cc8695524af978f7fcf6d37c64..132ec60be3744301703d733c436d3f40eb26e031 100644 (file)
@@ -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 <features.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -26,9 +28,7 @@
 #include <errno.h>
 #include <assert.h>
 #include <ctype.h>
-#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) {