Fix gcc warnings.

This commit is contained in:
Andrew Johnson
2009-02-03 06:05:51 +00:00
parent 289f5500a4
commit f1a0584273
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -71,8 +71,8 @@ static int getNumber(char **pbeg, double *value)
static void errExit(char *pmessage)
{
fprintf(stderr,pmessage);
fprintf(stderr,"\n");
fprintf(stderr, "%s\n", pmessage);
fflush(stderr);
exit(-1);
}
+1 -1
View File
@@ -22,7 +22,7 @@ extern "C" {
/* define errMessage with a macro so we can print the file and line number*/
#define errMessage(S, PM) \
errPrintf(S, __FILE__, __LINE__, PM)
errPrintf(S, __FILE__, __LINE__, "%s", PM)
/* epicsPrintf and epicsVprintf old versions of errlog routines*/
#define epicsPrintf errlogPrintf
#define epicsVprintf errlogVprintf