-/* $OpenBSD: extern.h,v 1.10 2016/03/08 10:48:39 mestre Exp $ */
+/* $OpenBSD: extern.h,v 1.11 2017/06/23 12:56:25 fcambus Exp $ */
/* $NetBSD: extern.h,v 1.3 1997/10/11 01:55:27 lukem Exp $ */
/*
#define length(str) (strlen((str)) + 1)
/* wizard.c */
-void datime(time_t *, time_t *);
void poof(void);
int Start(void);
int wizard(void);
-/* $OpenBSD: io.c,v 1.22 2016/12/21 18:28:19 krw Exp $ */
+/* $OpenBSD: io.c,v 1.23 2017/06/23 12:56:25 fcambus Exp $ */
/* $NetBSD: io.c,v 1.3 1995/04/24 12:21:37 cgd Exp $ */
/*-
}
}
-
-#if 0 /* Not used */
-int
-confirm(char *mesg) /* confirm irreversible action */
-{
- int result;
- int ch;
-
- printf("%s", mesg); /* tell him what he did */
- if ((ch = getchar()) == 'y') /* was his first letter a 'y'? */
- result = 1;
- else if (ch == EOF) {
- printf("user closed input stream, quitting...\n");
- exit(0);
- } else
- result = 0;
- FLUSHLINE;
- return (result);
-}
-#endif
-
int
yes(int x, int y, int z) /* confirm with rspeak */
{
-/* $OpenBSD: wizard.c,v 1.19 2016/03/08 10:48:39 mestre Exp $ */
+/* $OpenBSD: wizard.c,v 1.20 2017/06/23 12:56:25 fcambus Exp $ */
/* $NetBSD: wizard.c,v 1.3 1995/04/24 12:21:41 cgd Exp $ */
/*-
#include "extern.h"
#include "hdr.h"
-#if 0
-void
-datime(int *d, int *t)
-{
- time_t tvec;
- struct tm *tptr;
-
- time(&tvec);
- tptr = localtime(&tvec);
- /* day since 1977 (mod leap) */
- *d = tptr->tm_yday + 365 * (tptr->tm_year - 77);
- /* bug: this will overflow in the year 2066 AD */
- /* it will be attributed to Wm the C's millenial celebration */
- /* and minutes since midnite */
- *t = tptr->tm_hour * 60 + tptr->tm_min;
-} /* pretty painless */
-#endif
-
char magic[6];
void