Remove use of ‘register’ keyword in this file.
Clang is now warning about this, and it’s certainly useless.
This commit is contained in:
parent
6323477a35
commit
ce7f78e0ca
@ -267,7 +267,7 @@ void show(const char *zone, time_t t, int v)
|
||||
|
||||
static char *abbr(struct tm *tmp)
|
||||
{
|
||||
register char * result;
|
||||
char * result;
|
||||
static char nada;
|
||||
|
||||
if (tmp->tm_isdst != 0 && tmp->tm_isdst != 1)
|
||||
@ -627,7 +627,7 @@ static int fgcompute_change (fgtz_rule *rule, int year)
|
||||
// tz_rule *rule;
|
||||
// int year;
|
||||
{
|
||||
register time_t t;
|
||||
time_t t;
|
||||
int y;
|
||||
|
||||
if (year != -1 && rule->computed_for == year)
|
||||
@ -660,8 +660,8 @@ static int fgcompute_change (fgtz_rule *rule, int year)
|
||||
case fgtz_rule::M:
|
||||
/* Mm.n.d - Nth "Dth day" of month M. */
|
||||
{
|
||||
register int i, d, m1, yy0, yy1, yy2, dow;
|
||||
register const unsigned short int *myday =
|
||||
int i, d, m1, yy0, yy1, yy2, dow;
|
||||
const unsigned short int *myday =
|
||||
&mon_yday[isleap (year)][rule->m];
|
||||
|
||||
/* First add SECSPERDAY for each day in months before M. */
|
||||
@ -707,7 +707,7 @@ static int fgcompute_change (fgtz_rule *rule, int year)
|
||||
int fgtzfile_compute (time_t timer, int use_localtime,
|
||||
long int *leap_correct, int *leap_hit)
|
||||
{
|
||||
register size_t i;
|
||||
size_t i;
|
||||
|
||||
if (use_localtime)
|
||||
{
|
||||
@ -788,10 +788,10 @@ void fgtzfile_read (const char *file)
|
||||
{
|
||||
// static const char default_tzdir[] = TZDIR;
|
||||
size_t num_isstd, num_isgmt;
|
||||
register FILE *f;
|
||||
FILE *f;
|
||||
struct tzhead tzhead;
|
||||
size_t chars;
|
||||
register size_t i;
|
||||
size_t i;
|
||||
struct ttinfo *info;
|
||||
|
||||
use_fgtzfile = 0;
|
||||
@ -1046,8 +1046,8 @@ void offtime (const time_t *t, long int offset, struct tm *tp)
|
||||
// long int offset;
|
||||
// struct tm *tp;
|
||||
{
|
||||
register long int days, rem, y;
|
||||
register const unsigned short int *ip;
|
||||
long int days, rem, y;
|
||||
const unsigned short int *ip;
|
||||
|
||||
days = *t / SECS_PER_DAY;
|
||||
rem = *t % SECS_PER_DAY;
|
||||
|
Loading…
Reference in New Issue
Block a user