compiles clean using -std=c89

This commit is contained in:
joonicks
2018-04-24 18:28:10 +02:00
parent e92d9fd83e
commit 017f85e1ee
24 changed files with 294 additions and 259 deletions

View File

@@ -473,7 +473,7 @@ char *random_question(char *triv_rand)
} entry;
if (STRCHR(triv_qfile,'/') || strlen(triv_qfile) > 100) // really bad filenames...
if (STRCHR(triv_qfile,'/') || strlen(triv_qfile) > 100) /* really bad filenames... */
return(NULL);
stringcat(stringcpy(tmpname,"trivia/"),triv_qfile);
@@ -727,11 +727,11 @@ void do_bigsay(COMMAND_ARGS)
{
temp = chop(&rest);
if (temp[1] == '-')
; // allow .bigsay -- -dash-
; /* allow .bigsay -- -dash- */
else
if (STRCHR(temp,'/') == NULL) // no filesystem perversions...
if (STRCHR(temp,'/') == NULL) /* no filesystem perversions... */
{
stringcat(stringcpy(output,temp+1),".bigchars"); // temp+1 = skip initial '-'
stringcat(stringcpy(output,temp+1),".bigchars"); /* temp+1 = skip initial '-' */
}
}
#ifdef DEBUG