Fix uses of names of library functions for other purposes.

This commit is contained in:
jsm 1999-09-13 17:18:56 +00:00
parent 5b011b57a2
commit a1038d000e
5 changed files with 18 additions and 18 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: com6.c,v 1.13 1999/09/13 17:15:42 jsm Exp $ */
/* $NetBSD: com6.c,v 1.14 1999/09/13 17:18:56 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)com6.c 8.2 (Berkeley) 4/28/95";
#else
__RCSID("$NetBSD: com6.c,v 1.13 1999/09/13 17:15:42 jsm Exp $");
__RCSID("$NetBSD: com6.c,v 1.14 1999/09/13 17:18:56 jsm Exp $");
#endif
#endif /* not lint */
@ -134,7 +134,7 @@ post(ch)
date = ctime(&tvsec);
date[24] = '\0';
if (score_fp != NULL) {
fprintf(score_fp, "%s %8s %c%20s", date, uname, ch, rate());
fprintf(score_fp, "%s %8s %c%20s", date, username, ch, rate());
if (wiz)
fprintf(score_fp, " wizard\n");
else

View File

@ -1,4 +1,4 @@
/* $NetBSD: extern.h,v 1.12 1999/07/28 01:45:42 hubertf Exp $ */
/* $NetBSD: extern.h,v 1.13 1999/09/13 17:18:57 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@ -283,7 +283,7 @@ unsigned int wear[NUMOFWORDS];
char beenthere[NUMOFROOMS + 1];
char injuries[NUMOFINJURIES];
char uname[9];
char username[9];
struct wlist {
const char *string;

View File

@ -1,4 +1,4 @@
/* $NetBSD: init.c,v 1.9 1999/07/28 01:45:43 hubertf Exp $ */
/* $NetBSD: init.c,v 1.10 1999/09/13 17:18:57 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)init.c 8.4 (Berkeley) 4/30/95";
#else
__RCSID("$NetBSD: init.c,v 1.9 1999/07/28 01:45:43 hubertf Exp $");
__RCSID("$NetBSD: init.c,v 1.10 1999/09/13 17:18:57 jsm Exp $");
#endif
#endif /* not lint */
@ -56,7 +56,7 @@ initialize(filename)
puts("Admiral D.W. Riggle\n");
location = dayfile;
srand(getpid());
getutmp(uname);
getutmp(username);
wordinit();
if (filename == NULL) {
direction = NORTH;
@ -73,7 +73,7 @@ initialize(filename)
restore(savefile);
free(savefile);
}
wiz = wizard(uname);
wiz = wizard(username);
signal(SIGINT, diesig);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: gomoku.h,v 1.6 1999/09/08 21:17:49 jsm Exp $ */
/* $NetBSD: gomoku.h,v 1.7 1999/09/13 17:18:57 jsm Exp $ */
/*
* Copyright (c) 1994
@ -276,7 +276,7 @@ void cursfini __P((void));
void cursinit __P((void));
void bdwho __P((int));
void panic __P((const char *)) __attribute__((__noreturn__));
void log __P((const char *));
void glog __P((const char *));
void dlog __P((const char *));
void quit __P((void)) __attribute__((__noreturn__));
void quitsig __P((int)) __attribute__((__noreturn__));

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.8 1999/09/12 09:02:21 jsm Exp $ */
/* $NetBSD: main.c,v 1.9 1999/09/13 17:18:58 jsm Exp $ */
/*
* Copyright (c) 1994
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994\n\
#if 0
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95";
#else
__RCSID("$NetBSD: main.c,v 1.8 1999/09/12 09:02:21 jsm Exp $");
__RCSID("$NetBSD: main.c,v 1.9 1999/09/13 17:18:58 jsm Exp $");
#endif
#endif /* not lint */
@ -262,7 +262,7 @@ again:
ask("save file name? ");
(void)getline(buf, sizeof(buf));
if ((fp = fopen(buf, "w")) == NULL) {
log("cannot create save file");
glog("cannot create save file");
goto getinput;
}
for (i = 0; i < movenum - 1; i++)
@ -273,7 +273,7 @@ again:
}
if (curmove != RESIGN &&
board[curmove].s_occ != EMPTY) {
log("Illegal move");
glog("Illegal move");
goto getinput;
}
}
@ -285,7 +285,7 @@ again:
}
if (interactive) {
sprintf(fmtbuf, fmt[color], movenum, stoc(curmove));
log(fmtbuf);
glog(fmtbuf);
}
if ((i = makemove(color, curmove)) != MOVEOK)
break;
@ -322,7 +322,7 @@ again:
ask("save file name? ");
(void)getline(buf, sizeof(buf));
if ((fp = fopen(buf, "w")) == NULL) {
log("cannot create save file");
glog("cannot create save file");
goto replay;
}
for (i = 0; i < movenum - 1; i++)
@ -512,7 +512,7 @@ dlog(str)
}
void
log(str)
glog(str)
const char *str;
{