From: Dawid Jagiela Date: Sat, 26 May 2012 21:12:28 +0000 (+0200) Subject: EOF warning fix X-Git-Tag: v.3.3.0~5^2~258 X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=commitdiff_plain;h=d0d33f0b15713a6c4938122970e677905a78d9f3;p=unres.git EOF warning fix --- diff --git a/source/unres/src_CSA/compinfo.c b/source/unres/src_CSA/compinfo.c index c7eecbe..e28f686 100644 --- a/source/unres/src_CSA/compinfo.c +++ b/source/unres/src_CSA/compinfo.c @@ -28,7 +28,7 @@ uname(&Name); time(&Tp); system("whoami > tmptmp"); in1=fopen("tmptmp","r"); -if (fscanf(in1,"%s",buf1) != NULL) +if (fscanf(in1,"%s",buf1) != EOF) { p1=ctime(&Tp); p1[strlen(p1)-1]='\0'; diff --git a/source/unres/src_MD-M/compinfo.c b/source/unres/src_MD-M/compinfo.c index c7eecbe..e28f686 100644 --- a/source/unres/src_MD-M/compinfo.c +++ b/source/unres/src_MD-M/compinfo.c @@ -28,7 +28,7 @@ uname(&Name); time(&Tp); system("whoami > tmptmp"); in1=fopen("tmptmp","r"); -if (fscanf(in1,"%s",buf1) != NULL) +if (fscanf(in1,"%s",buf1) != EOF) { p1=ctime(&Tp); p1[strlen(p1)-1]='\0'; diff --git a/source/unres/src_MD/compinfo.c b/source/unres/src_MD/compinfo.c index c7eecbe..e28f686 100644 --- a/source/unres/src_MD/compinfo.c +++ b/source/unres/src_MD/compinfo.c @@ -28,7 +28,7 @@ uname(&Name); time(&Tp); system("whoami > tmptmp"); in1=fopen("tmptmp","r"); -if (fscanf(in1,"%s",buf1) != NULL) +if (fscanf(in1,"%s",buf1) != EOF) { p1=ctime(&Tp); p1[strlen(p1)-1]='\0';