lib/, src/, po/: get[u]long(): Move functions to lib/atoi/str2i.h

And make them inline.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-01-16 21:00:42 +01:00
committed by Serge Hallyn
parent dc12e87fe7
commit 27e236ca79
24 changed files with 105 additions and 84 deletions
+1
View File
@@ -27,6 +27,7 @@
#include <pwd.h>
#include "alloc.h"
#include "atoi/str2i.h"
#include "defines.h"
#include "memzero.h"
#include "prototypes.h"
+3
View File
@@ -16,11 +16,13 @@
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef ACCT_TOOLS_SETUID
#ifdef USE_PAM
#include "pam_defs.h"
#endif /* USE_PAM */
#endif /* ACCT_TOOLS_SETUID */
#include "atoi/str2i.h"
#include "defines.h"
#include "nscd.h"
#include "sssd.h"
@@ -33,6 +35,7 @@
#include "exitcodes.h"
#include "shadowlog.h"
/*
* Global variables
*/
+3
View File
@@ -16,9 +16,11 @@
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef USE_PAM
#include "pam_defs.h"
#endif /* USE_PAM */
#include "atoi/str2i.h"
#include "defines.h"
#include "nscd.h"
#include "sssd.h"
@@ -30,6 +32,7 @@
#include "exitcodes.h"
#include "shadowlog.h"
#define IS_CRYPT_METHOD(str) ((crypt_method != NULL && strcmp(crypt_method, str) == 0) ? true : false)
/*
+2
View File
@@ -19,6 +19,7 @@
#include <time.h>
#include <assert.h>
#include "atoi/str2i.h"
#include "defines.h"
#include "faillog.h"
#include "memzero.h"
@@ -29,6 +30,7 @@
#include "string/strftime.h"
/* local function prototypes */
NORETURN static void usage (int status);
static void print_one (/*@null@*/const struct passwd *pw, bool force);
+2
View File
@@ -23,6 +23,7 @@
#include <net/if.h>
#endif
#include "atoi/str2i.h"
#include "defines.h"
#include "prototypes.h"
#include "getdef.h"
@@ -33,6 +34,7 @@
#include "string/strftime.h"
/*
* Needed for MkLinux DR1/2/2.1 - J.
*/
+1
View File
@@ -31,6 +31,7 @@
#include <string.h>
#include "alloc.h"
#include "atoi/str2i.h"
#ifdef ACCT_TOOLS_SETUID
#ifdef USE_PAM
#include "pam_defs.h"
+2
View File
@@ -22,6 +22,7 @@
#include "agetpass.h"
#include "alloc.h"
#include "atoi/str2i.h"
#include "defines.h"
#include "getdef.h"
#include "memzero.h"
@@ -36,6 +37,7 @@
#include "time/day_to_str.h"
/*
* exit status values
*/
+1
View File
@@ -37,6 +37,7 @@
#include <unistd.h>
#include "alloc.h"
#include "atoi/str2i.h"
#include "chkname.h"
#include "defines.h"
#include "faillog.h"
+1
View File
@@ -33,6 +33,7 @@
#include <time.h>
#include "alloc.h"
#include "atoi/str2i.h"
#include "chkname.h"
#include "defines.h"
#include "faillog.h"