diff --git a/helpers.c b/helpers.c index f6c49737..e22796ce 100644 --- a/helpers.c +++ b/helpers.c @@ -39,30 +39,6 @@ #include "private.h" #include "libite/lite.h" - -/** - * atonum - Convert string to integer - * @str: String value to convert. - * - * Returns: - * The converted (positive) number, or -1 on error, with @errno set. - */ -int atonum(char *str) -{ - int val; - char *end; - - if (!str) - return -1; - - errno = 0; - val = strtol(str, &end, 10); - if (errno || end == str) - return -1; - - return val; -} - static int encode(int lvl) { if (!lvl) return 0; diff --git a/helpers.h b/helpers.h index 03a9aeb8..b6e8c9d7 100644 --- a/helpers.h +++ b/helpers.h @@ -65,8 +65,6 @@ do { \ #define SETBIT(a,i) (a |= (1 << (i))) #define CLRBIT(a,i) (a &= ~(1 << (i))) -int atonum (char *str); - void runlevel_set (int pre, int now); int runlevel_get (void); char *runlevel_string (int levels); diff --git a/libite b/libite index 4005dd5e..1147e547 160000 --- a/libite +++ b/libite @@ -1 +1 @@ -Subproject commit 4005dd5e2c1dccb90a12aa8796cac752b33a2ca2 +Subproject commit 1147e547dcb0e07eea3538e2af392477766cd0bf