From: Dawid Jagiela Date: Sat, 26 May 2012 21:12:28 +0000 (+0200) Subject: EOF warning fix X-Git-Tag: v.3.2~100 X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?p=unres.git;a=commitdiff_plain;h=1aedf0f33655833a4e64a16c939340de42398d13 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';