summaryrefslogtreecommitdiffstats
path: root/usr.bin/at/parsetime.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-12-02 12:26:18 +0000
committermarkm <markm@FreeBSD.org>2001-12-02 12:26:18 +0000
commit1713f5e655d170628c97191eacac5663fb39d978 (patch)
treeff842953cae89f6bfa561e2572decf2ed59a08f7 /usr.bin/at/parsetime.c
parentdf573903aa0a7f705699fc186618360f65d63c9e (diff)
downloadFreeBSD-src-1713f5e655d170628c97191eacac5663fb39d978.zip
FreeBSD-src-1713f5e655d170628c97191eacac5663fb39d978.tar.gz
WARNS=2 fixup.
Diffstat (limited to 'usr.bin/at/parsetime.c')
-rw-r--r--usr.bin/at/parsetime.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/at/parsetime.c b/usr.bin/at/parsetime.c
index d4797e7..dc0d180 100644
--- a/usr.bin/at/parsetime.c
+++ b/usr.bin/at/parsetime.c
@@ -57,6 +57,7 @@ static const char rcsid[] =
#include "at.h"
#include "panic.h"
+#include "parsetime.h"
/* Structures and unions */
@@ -74,7 +75,7 @@ enum { /* symbols */
/* parse translation table - table driven parsers can be your FRIEND!
*/
struct {
- char *name; /* token name */
+ const char *name; /* token name */
int value; /* token id */
int plural; /* is this plural? */
} Specials[] = {
@@ -159,7 +160,7 @@ static int sc_tokplur; /* scanner - is token plural? */
static int
parse_token(char *arg)
{
- int i;
+ size_t i;
for (i=0; i<(sizeof Specials/sizeof Specials[0]); i++)
if (strcasecmp(Specials[i].name, arg) == 0) {
@@ -193,7 +194,7 @@ init_scanner(int argc, char **argv)
* token() fetches a token from the input stream
*/
static int
-token()
+token(void)
{
int idx;
OpenPOWER on IntegriCloud