]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - pw/psdate.c
Remove a death threat from the FreeBSD sources
[pw-darwin.git] / pw / psdate.c
index 537861bd9770c35cbeaaf7f7b9bb2ed4915a0e15..bd2aa152b437522d96e8b7d6869bf7565ea385bb 100644 (file)
@@ -29,31 +29,15 @@ static const char rcsid[] =
   "$FreeBSD$";
 #endif /* not lint */
 
-#include <stdio.h>
+#include <ctype.h>
+#include <err.h>
 #include <stdlib.h>
 #include <string.h>
-#include <ctype.h>
 #include <xlocale.h>
-#include <err.h>
 
 #include "psdate.h"
 
 
-static int
-a2i(char const ** str)
-{
-       int             i = 0;
-       char const     *s = *str;
-
-       if (isdigit((unsigned char)*s)) {
-               i = atoi(s);
-               while (isdigit((unsigned char)*s))
-                       ++s;
-               *str = s;
-       }
-       return i;
-}
-
 static int
 numerics(char const * str)
 {