-/* $NetBSD: arithmetic.c,v 1.16 2001/02/05 00:20:58 christos Exp $ */
+/* $NetBSD: arithmetic.c,v 1.17 2001/02/19 22:41:45 cgd Exp $ */
/*
* Copyright (c) 1989, 1993
#if 0
static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: arithmetic.c,v 1.16 2001/02/05 00:20:58 christos Exp $");
+__RCSID("$NetBSD: arithmetic.c,v 1.17 2001/02/19 22:41:45 cgd Exp $");
#endif
#endif /* not lint */
time_t qtime;
#define NQUESTS 20
-extern char *__progname; /* from crt0.o */
-
/*
* Select keys from +-x/ to be asked addition, subtraction, multiplication,
* and division problems. More than one key may be given. The default is
usage()
{
(void)fprintf(stderr, "Usage: %s [-o +-x/] [-r range]\n",
- __progname);
+ getprogname());
exit(1);
}
-/* $NetBSD: fortune.c,v 1.26 2001/02/05 00:29:44 christos Exp $ */
+/* $NetBSD: fortune.c,v 1.27 2001/02/19 22:41:45 cgd Exp $ */
/*-
* Copyright (c) 1986, 1993
#if 0
static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fortune.c,v 1.26 2001/02/05 00:29:44 christos Exp $");
+__RCSID("$NetBSD: fortune.c,v 1.27 2001/02/19 22:41:45 cgd Exp $");
#endif
#endif /* not lint */
#define NAMLEN(d) ((d)->d_namlen)
#endif
-extern char *__progname;
-
int
main(ac, av)
int ac;
void
usage()
{
- (void) fprintf(stderr, "Usage: %s [-a", __progname);
+
+ (void) fprintf(stderr, "Usage: %s [-a", getprogname());
#ifdef DEBUG
(void) fprintf(stderr, "D");
#endif /* DEBUG */