From 1aedf0f33655833a4e64a16c939340de42398d13 Mon Sep 17 00:00:00 2001 From: Dawid Jagiela Date: Sat, 26 May 2012 23:12:28 +0200 Subject: [PATCH] EOF warning fix --- source/unres/src_CSA/compinfo.c | 2 +- source/unres/src_MD-M/compinfo.c | 2 +- source/unres/src_MD/compinfo.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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'; -- 1.7.9.5