From: Beletti Date: Tue, 19 Nov 2013 01:30:55 +0000 (+0000) Subject: commands/at: changed K&R to ANSI style X-Git-Tag: v3.3.0~671 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/index.css?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F1172%2F4;p=minix.git commands/at: changed K&R to ANSI style Change-Id: Ifb12349bcf456ff303c15fdedda4ab853a148aff --- diff --git a/commands/at/at.c b/commands/at/at.c index 6ca2d05d5..3442e28d9 100644 --- a/commands/at/at.c +++ b/commands/at/at.c @@ -23,9 +23,7 @@ int getltim(char *t); int getlday(char *m, char *d); int digitstring(char *s); -int main(argc, argv, envp) -int argc; -char **argv, **envp; +int main(int argc, char **argv, char **envp) { int i, c, mask, ltim, year, lday = NODAY; char buf[64], job[30], pastjob[35], *dp, *sp; @@ -173,8 +171,7 @@ char **argv, **envp; /*-------------------------------------------------------------------------* * getltim() return((time OK) ? daytime : -1) * *-------------------------------------------------------------------------*/ -int getltim(t) -char *t; +int getltim(char *t) { if (t[4] == '\0' && t[3] >= '0' && t[3] <= '9' && t[2] >= '0' && t[2] <= '5' && t[1] >= '0' && t[1] <= '9' && @@ -187,8 +184,7 @@ char *t; /*-------------------------------------------------------------------------* * getlday() return ((date OK) ? yearday : -1) * *-------------------------------------------------------------------------*/ -int getlday(m, d) -char *m, *d; +int getlday(char *m, char *d) { int i, day, im; static int cumday[] = {0, 0, 31, 60, 91, 121, 152, @@ -215,8 +211,7 @@ char *m, *d; -int digitstring(s) -char *s; +int digitstring(char *s) { while (*s >= '0' && *s <= '9') s++; return((*s == '\0') ? 1 : 0);