Project

General

Profile

Bug #1509 ยป games_warns.diff

uqs, 09/14/2009 02:57 PM

View differences:

games/atc/include.h
#include <pwd.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
games/atc/lex.l
* For more info on this and all of my stuff, mail edjames@berkeley.edu.
*/
#include <unistd.h>
#include "y.tab.h"
#define YY_NO_UNPUT
games/atc/log.c
struct passwd *pw;
char *cp;
SCORE score[100], thisscore;
struct utsname name;
struct utsname un;
if (score_fp == NULL) {
warnx("no score file available");
......
}
strcpy(thisscore.name, pw->pw_name);
uname(&name);
strcpy(thisscore.host, name.nodename);
uname(&un);
strcpy(thisscore.host, un.nodename);
cp = rindex(filename, '/');
if (cp == NULL) {
games/canfield/canfield/canfield.c
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <time.h>
#include "pathnames.h"
games/fortune/fortune/fortune.c
# include <sys/param.h>
# include <sys/stat.h>
# include <netinet/in.h>
# include <dirent.h>
# include <err.h>
games/fortune/strfile/strfile.c
*/
# include <sys/param.h>
# include <netinet/in.h>
# include <stdbool.h>
# include <stdio.h>
# include <stdlib.h>
games/fortune/unstr/unstr.c
*/
# include <sys/param.h>
# include <netinet/in.h>
# include <stdio.h>
# include <ctype.h>
# include <stdlib.h>
    (1-1/1)