From 44d1abebb48d678ac1b75f6556c68c9634cb235b Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 14 Jun 2000 18:18:01 +0000 Subject: Big warnings cleanup for Solaris/GCC. Down to about 40 now, but we'll get there one day. Use `cat' to create aclocal.m4, not `aclocal'. Some people don't have automake installed. Only run the autoconf rule in the top-level GNUmakefile if the invoker specified `make configure', don't run it automatically because of CVS timestamp skew. --- src/backend/utils/init/miscinit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/utils/init/miscinit.c') diff --git a/src/backend/utils/init/miscinit.c b/src/backend/utils/init/miscinit.c index 3dee08ec51b..eaee59d81fe 100644 --- a/src/backend/utils/init/miscinit.c +++ b/src/backend/utils/init/miscinit.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.49 2000/06/13 07:35:09 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.50 2000/06/14 18:17:46 petere Exp $ * *------------------------------------------------------------------------- */ @@ -500,14 +500,14 @@ SetPidFile(pid_t pid) */ fprintf(stderr, "Can't create pid file: %s\n", pidfile); if (is_postgres) - fprintf(stderr, "Is another postgres (pid: %d) running?\n", post_pid); + fprintf(stderr, "Is another postgres (pid: %d) running?\n", (int) post_pid); else fprintf(stderr, "Is another postmaster (pid: %s) running?\n", pidstr); return (-1); } } - sprintf(pidstr, "%d", pid); + sprintf(pidstr, "%d", (int) pid); if (write(fd, pidstr, strlen(pidstr)) != strlen(pidstr)) { fprintf(stderr, "Write to pid file failed\n"); -- cgit v1.2.3