More extern removal from Robert P. Day.
This commit is contained in:
parent
cb8d4319a3
commit
ca087713f2
@ -154,7 +154,7 @@ char * bb_getug(char *buffer, char *idname, long id, int bufsize, char prefix)
|
||||
#include <stdlib.h>
|
||||
#include "libbb.h"
|
||||
|
||||
extern unsigned long get_ug_id(const char *s,
|
||||
unsigned long get_ug_id(const char *s,
|
||||
long (*__bb_getxxnam)(const char *))
|
||||
{
|
||||
unsigned long r;
|
||||
|
@ -17,8 +17,7 @@
|
||||
#include <string.h>
|
||||
|
||||
/* returns the array number of the string */
|
||||
extern int
|
||||
compare_string_array(const char * const string_array[], const char *key)
|
||||
int compare_string_array(const char * const string_array[], const char *key)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include <assert.h>
|
||||
#include "libbb.h"
|
||||
|
||||
extern
|
||||
unsigned long bb_xparse_number(const char *numstr,
|
||||
const struct suffix_mult *suffixes)
|
||||
{
|
||||
|
@ -38,7 +38,7 @@
|
||||
#include "libbb.h"
|
||||
|
||||
#ifdef L_bb_vfprintf
|
||||
extern int bb_vfprintf(FILE * __restrict stream,
|
||||
int bb_vfprintf(FILE * __restrict stream,
|
||||
const char * __restrict format,
|
||||
va_list arg)
|
||||
{
|
||||
@ -75,7 +75,7 @@ int bb_vprintf(const char * __restrict format, va_list arg)
|
||||
#endif
|
||||
|
||||
#ifdef L_bb_fprintf
|
||||
extern int bb_fprintf(FILE * __restrict stream,
|
||||
int bb_fprintf(FILE * __restrict stream,
|
||||
const char * __restrict format, ...)
|
||||
{
|
||||
va_list arg;
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include "libbb.h"
|
||||
|
||||
#ifdef L_safe_strtoi
|
||||
extern
|
||||
int safe_strtoi(char *arg, int* value)
|
||||
{
|
||||
int error;
|
||||
@ -37,7 +36,6 @@ int safe_strtoi(char *arg, int* value)
|
||||
#endif
|
||||
|
||||
#ifdef L_safe_strtod
|
||||
extern
|
||||
int safe_strtod(char *arg, double* value)
|
||||
{
|
||||
char *endptr;
|
||||
@ -55,7 +53,6 @@ int safe_strtod(char *arg, double* value)
|
||||
#endif
|
||||
|
||||
#ifdef L_safe_strtol
|
||||
extern
|
||||
int safe_strtol(char *arg, long* value)
|
||||
{
|
||||
char *endptr;
|
||||
@ -73,7 +70,6 @@ int safe_strtol(char *arg, long* value)
|
||||
#endif
|
||||
|
||||
#ifdef L_safe_strtoul
|
||||
extern
|
||||
int safe_strtoul(char *arg, unsigned long* value)
|
||||
{
|
||||
char *endptr;
|
||||
|
@ -29,7 +29,6 @@
|
||||
#include "libbb.h"
|
||||
|
||||
#ifdef L_xgetularg_bnd_sfx
|
||||
extern
|
||||
unsigned long bb_xgetularg_bnd_sfx(const char *arg, int base,
|
||||
unsigned long lower,
|
||||
unsigned long upper,
|
||||
@ -92,7 +91,6 @@ unsigned long bb_xgetularg_bnd_sfx(const char *arg, int base,
|
||||
#endif
|
||||
|
||||
#ifdef L_xgetlarg_bnd_sfx
|
||||
extern
|
||||
long bb_xgetlarg_bnd_sfx(const char *arg, int base,
|
||||
long lower,
|
||||
long upper,
|
||||
@ -124,7 +122,6 @@ long bb_xgetlarg_bnd_sfx(const char *arg, int base,
|
||||
#endif
|
||||
|
||||
#ifdef L_getlarg10_sfx
|
||||
extern
|
||||
long bb_xgetlarg10_sfx(const char *arg, const struct suffix_mult *suffixes)
|
||||
{
|
||||
return bb_xgetlarg_bnd_sfx(arg, 10, LONG_MIN, LONG_MAX, suffixes);
|
||||
@ -132,7 +129,6 @@ long bb_xgetlarg10_sfx(const char *arg, const struct suffix_mult *suffixes)
|
||||
#endif
|
||||
|
||||
#ifdef L_xgetularg_bnd
|
||||
extern
|
||||
unsigned long bb_xgetularg_bnd(const char *arg, int base,
|
||||
unsigned long lower,
|
||||
unsigned long upper)
|
||||
@ -142,7 +138,6 @@ unsigned long bb_xgetularg_bnd(const char *arg, int base,
|
||||
#endif
|
||||
|
||||
#ifdef L_xgetularg10_bnd
|
||||
extern
|
||||
unsigned long bb_xgetularg10_bnd(const char *arg,
|
||||
unsigned long lower,
|
||||
unsigned long upper)
|
||||
@ -152,7 +147,6 @@ unsigned long bb_xgetularg10_bnd(const char *arg,
|
||||
#endif
|
||||
|
||||
#ifdef L_xgetularg10
|
||||
extern
|
||||
unsigned long bb_xgetularg10(const char *arg)
|
||||
{
|
||||
return bb_xgetularg10_bnd(arg, 0, ULONG_MAX);
|
||||
|
Loading…
Reference in New Issue
Block a user