updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / yaph / yaph-gcc4.patch
blob6ff0b420fee11303ea36ffacee63027d5608c77c
1 diff -crB yaph-0.91/yaph/init.c yaph-0.91-patched/yaph/init.c
2 *** yaph-0.91/yaph/init.c 2003-02-09 07:33:04.000000000 +0100
3 --- yaph-0.91/yaph/init.c 2010-04-12 17:04:30.000000000 +0200
4 ***************
5 *** 126,134 ****
6 {/// config file routine
7 FILE *cnf=NULL;
8 char buff[1024];
9 ! if(!(cnf=fopen("./yaph.conf","rb")))
10 ! if(!(cnf=fopen("/etc/yaph.conf","rb")))
11 ! goto no_file;
12 while(fgets(buff,sizeof(buff),cnf))
14 if(buff[strspn(buff," ")]!='#')
15 --- 126,133 ----
16 {/// config file routine
17 FILE *cnf=NULL;
18 char buff[1024];
19 ! if((cnf=fopen("./yaph.conf","rb"))||(cnf=fopen("/etc/yaph.conf","rb")))
20 ! {
21 while(fgets(buff,sizeof(buff),cnf))
23 if(buff[strspn(buff," ")]!='#')
24 ***************
25 *** 200,206 ****
29 ! no_file:
32 // ------ open files
33 --- 199,205 ----
37 ! }
40 // ------ open files