Merge pull request #76 from vasily122/insert-int
insert definitions of INT in some functions
This commit is contained in:
@@ -26,6 +26,7 @@ static void
|
|||||||
show(zone, t, v)
|
show(zone, t, v)
|
||||||
char * zone;
|
char * zone;
|
||||||
time_t t;
|
time_t t;
|
||||||
|
int v;
|
||||||
{
|
{
|
||||||
struct tm * tmp;
|
struct tm * tmp;
|
||||||
|
|
||||||
|
|||||||
@@ -309,6 +309,8 @@ static void
|
|||||||
eats(name, num, rname, rnum)
|
eats(name, num, rname, rnum)
|
||||||
char * name;
|
char * name;
|
||||||
char * rname;
|
char * rname;
|
||||||
|
int num;
|
||||||
|
int rnum;
|
||||||
{
|
{
|
||||||
filename = name;
|
filename = name;
|
||||||
linenum = num;
|
linenum = num;
|
||||||
@@ -319,6 +321,7 @@ char * rname;
|
|||||||
static void
|
static void
|
||||||
eat(name, num)
|
eat(name, num)
|
||||||
char * name;
|
char * name;
|
||||||
|
int num;
|
||||||
{
|
{
|
||||||
eats(name, num, (char *) NULL, -1);
|
eats(name, num, (char *) NULL, -1);
|
||||||
}
|
}
|
||||||
@@ -653,6 +656,7 @@ static long
|
|||||||
gethms(string, errstring, signable)
|
gethms(string, errstring, signable)
|
||||||
char * string;
|
char * string;
|
||||||
char * errstring;
|
char * errstring;
|
||||||
|
int signable;
|
||||||
{
|
{
|
||||||
int hh, mm, ss, sign;
|
int hh, mm, ss, sign;
|
||||||
|
|
||||||
@@ -687,6 +691,7 @@ char * errstring;
|
|||||||
static void
|
static void
|
||||||
inrule(fields, nfields)
|
inrule(fields, nfields)
|
||||||
register char ** fields;
|
register char ** fields;
|
||||||
|
int nfields;
|
||||||
{
|
{
|
||||||
struct rule r;
|
struct rule r;
|
||||||
|
|
||||||
@@ -713,6 +718,7 @@ register char ** fields;
|
|||||||
static int
|
static int
|
||||||
inzone(fields, nfields)
|
inzone(fields, nfields)
|
||||||
register char ** fields;
|
register char ** fields;
|
||||||
|
int nfields;
|
||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
char buf[132];
|
char buf[132];
|
||||||
@@ -745,6 +751,7 @@ register char ** fields;
|
|||||||
static int
|
static int
|
||||||
inzcont(fields, nfields)
|
inzcont(fields, nfields)
|
||||||
register char ** fields;
|
register char ** fields;
|
||||||
|
int nfields;
|
||||||
{
|
{
|
||||||
if (nfields < ZONEC_MINFIELDS || nfields > ZONEC_MAXFIELDS) {
|
if (nfields < ZONEC_MINFIELDS || nfields > ZONEC_MAXFIELDS) {
|
||||||
error("wrong number of fields on Zone continuation line");
|
error("wrong number of fields on Zone continuation line");
|
||||||
@@ -756,6 +763,8 @@ register char ** fields;
|
|||||||
static int
|
static int
|
||||||
inzsub(fields, nfields, iscont)
|
inzsub(fields, nfields, iscont)
|
||||||
register char ** fields;
|
register char ** fields;
|
||||||
|
int nfields;
|
||||||
|
int iscont;
|
||||||
{
|
{
|
||||||
register char * cp;
|
register char * cp;
|
||||||
struct zone z;
|
struct zone z;
|
||||||
@@ -826,6 +835,7 @@ error("Zone continuation line end time is not after end time of previous line");
|
|||||||
static void
|
static void
|
||||||
inlink(fields, nfields)
|
inlink(fields, nfields)
|
||||||
register char ** fields;
|
register char ** fields;
|
||||||
|
int nfields;
|
||||||
{
|
{
|
||||||
struct link l;
|
struct link l;
|
||||||
|
|
||||||
@@ -1055,6 +1065,7 @@ char * name;
|
|||||||
static void
|
static void
|
||||||
outzone(zpfirst, zonecount)
|
outzone(zpfirst, zonecount)
|
||||||
struct zone * zpfirst;
|
struct zone * zpfirst;
|
||||||
|
int zonecount;
|
||||||
{
|
{
|
||||||
register struct zone * zp;
|
register struct zone * zp;
|
||||||
register struct rule * rp;
|
register struct rule * rp;
|
||||||
@@ -1200,6 +1211,7 @@ addtt(starttime, addtype(startoff, startbuf, startisdst));
|
|||||||
static void
|
static void
|
||||||
addtt(starttime, type)
|
addtt(starttime, type)
|
||||||
time_t starttime;
|
time_t starttime;
|
||||||
|
int type;
|
||||||
{
|
{
|
||||||
if (timecnt != 0 && type == types[timecnt - 1])
|
if (timecnt != 0 && type == types[timecnt - 1])
|
||||||
return; /* easy enough! */
|
return; /* easy enough! */
|
||||||
@@ -1216,6 +1228,7 @@ static int
|
|||||||
addtype(gmtoff, abbr, isdst)
|
addtype(gmtoff, abbr, isdst)
|
||||||
long gmtoff;
|
long gmtoff;
|
||||||
char * abbr;
|
char * abbr;
|
||||||
|
int isdst;
|
||||||
{
|
{
|
||||||
register int i, j;
|
register int i, j;
|
||||||
|
|
||||||
@@ -1251,6 +1264,7 @@ char * abbr;
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
yearistype(year, type)
|
yearistype(year, type)
|
||||||
|
int year;
|
||||||
char * type;
|
char * type;
|
||||||
{
|
{
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
@@ -1276,7 +1290,7 @@ char * type;
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
lowerit(a)
|
lowerit(int a)
|
||||||
{
|
{
|
||||||
return (isascii(a) && isupper(a)) ? tolower(a) : a;
|
return (isascii(a) && isupper(a)) ? tolower(a) : a;
|
||||||
}
|
}
|
||||||
@@ -1538,7 +1552,7 @@ char * name;
|
|||||||
}
|
}
|
||||||
|
|
||||||
static long
|
static long
|
||||||
eitol(i)
|
eitol(int i)
|
||||||
{
|
{
|
||||||
long l;
|
long l;
|
||||||
|
|
||||||
|
|||||||
@@ -36,8 +36,7 @@
|
|||||||
/*
|
/*
|
||||||
* build the ioconf.c file
|
* build the ioconf.c file
|
||||||
*/
|
*/
|
||||||
static void
|
static void service_ioconf(fp)
|
||||||
service_ioconf(fp)
|
|
||||||
register FILE *fp;
|
register FILE *fp;
|
||||||
{
|
{
|
||||||
register struct device *dp;
|
register struct device *dp;
|
||||||
@@ -56,8 +55,7 @@ service_ioconf(fp)
|
|||||||
fprintf(fp, " { 0 }\n};\n");
|
fprintf(fp, " { 0 }\n};\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
static char *wnum(int num)
|
||||||
wnum(num)
|
|
||||||
{
|
{
|
||||||
if (num == QUES || num == UNKNOWN)
|
if (num == QUES || num == UNKNOWN)
|
||||||
return ("?");
|
return ("?");
|
||||||
|
|||||||
Reference in New Issue
Block a user