Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.

This commit is contained in:
Craig Rodrigues 2015-09-20 20:51:52 +00:00
parent 060e5496fc
commit 85cef63214

View File

@ -127,13 +127,8 @@ strftime(char * __restrict s, size_t maxsize, const char * __restrict format,
} }
static char * static char *
_fmt(format, t, pt, ptlim, warnp, loc) _fmt(const char *format, const struct tm * const t, char *pt,
const char * format; const char * const ptlim, int *warnp, locale_t loc)
const struct tm * const t;
char * pt;
const char * const ptlim;
int * warnp;
locale_t loc;
{ {
int Ealternative, Oalternative, PadIndex; int Ealternative, Oalternative, PadIndex;
struct lc_time_T *tptr = __get_current_time_locale(loc); struct lc_time_T *tptr = __get_current_time_locale(loc);
@ -592,12 +587,8 @@ locale_t loc;
} }
static char * static char *
_conv(n, format, pt, ptlim, loc) _conv(const int n, const char * const format, char * const pt,
const int n; const char * const ptlim, locale_t loc)
const char * const format;
char * const pt;
const char * const ptlim;
locale_t loc;
{ {
char buf[INT_STRLEN_MAXIMUM(int) + 1]; char buf[INT_STRLEN_MAXIMUM(int) + 1];
@ -606,10 +597,7 @@ locale_t loc;
} }
static char * static char *
_add(str, pt, ptlim) _add(const char *str, char *pt, const char * const ptlim)
const char * str;
char * pt;
const char * const ptlim;
{ {
while (pt < ptlim && (*pt = *str++) != '\0') while (pt < ptlim && (*pt = *str++) != '\0')
++pt; ++pt;
@ -625,14 +613,8 @@ const char * const ptlim;
*/ */
static char * static char *
_yconv(a, b, convert_top, convert_yy, pt, ptlim, loc) _yconv(const int a, const int b, const int convert_top, const int convert_yy,
const int a; char *pt, const char * const ptlim, locale_t loc)
const int b;
const int convert_top;
const int convert_yy;
char * pt;
const char * const ptlim;
locale_t loc;
{ {
register int lead; register int lead;
register int trail; register int trail;