From a341f3d4d00a30aafb37a113d6e976eb24b6358f Mon Sep 17 00:00:00 2001 From: ewt Date: Wed, 25 Sep 1996 19:15:21 +0000 Subject: [PATCH] typecase getpid() return to int CVS patchset: 1050 CVS date: 1996/09/25 19:15:21 --- lib/rebuilddb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rebuilddb.c b/lib/rebuilddb.c index 5253a4a..4bbaad0 100644 --- a/lib/rebuilddb.c +++ b/lib/rebuilddb.c @@ -26,7 +26,7 @@ int rpmdbRebuild(char * rootdir) { } newdbpath = alloca(strlen(dbpath) + 50 + strlen(rootdir)); - sprintf(newdbpath, "%s/%s/rebuilddb.%d", rootdir, dbpath, getpid()); + sprintf(newdbpath, "%s/%s/rebuilddb.%d", rootdir, dbpath, (int) getpid()); if (!access(newdbpath, F_OK)) { error(RPMERR_MKDIR, "temporary database %s already exists", @@ -39,7 +39,7 @@ int rpmdbRebuild(char * rootdir) { newdbpath, strerror(errno)); } - sprintf(newdbpath, "%s/rebuilddb.%d", dbpath, getpid()); + sprintf(newdbpath, "%s/rebuilddb.%d", dbpath, (int) getpid()); message(MESS_DEBUG, "opening old database\n"); if (openDatabase(rootdir, dbpath, &olddb, O_RDONLY, 0644, 0)) { -- 2.7.4