Description: Fix FTBFS with clang Fix "error: non-void function 'main' should return a value" error. Based on a patch by Arthur Marble Author: Vincent Legout Bug-Debian: http://bugs.debian.org/743008 Index: fairymax/fairymax.c =================================================================== --- fairymax.orig/fairymax.c +++ fairymax/fairymax.c @@ -474,7 +474,7 @@ void PrintVariants(int combo) FILE *f; f = fopen(inifile, "r"); - if(f==NULL) return; + if(f==NULL) return 0; /* search for game names in definition file */ do { @@ -549,7 +549,7 @@ void LoadGame(char *name) if(c == EOF) { printf("telluser variant %s not supported\n", name); fclose(f); - return; /* keep old settings */ + return 0; /* keep old settings */ } } currentVariant = count; Index: fairymax/maxqi.c =================================================================== --- fairymax.orig/maxqi.c +++ fairymax/maxqi.c @@ -386,7 +386,7 @@ void PrintVariants() FILE *f; f = fopen(inifile, "r"); - if(f==NULL) return; + if(f==NULL) return 0; /* search for game names in definition file */ do { @@ -422,7 +422,7 @@ void LoadGame(char *name) if(c == EOF) { printf("telluser variant %s not supported\n", name); fclose(f); - return; /* keep old settings */ + return 0; /* keep old settings */ } } currentVariant = count;