diff options
author | ewt <devnull@localhost> | 1996-09-25 19:15:21 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1996-09-25 19:15:21 +0000 |
commit | a341f3d4d00a30aafb37a113d6e976eb24b6358f (patch) | |
tree | b989fe93aae450af555a5ebfb0fb2c5e2e31e24b /lib | |
parent | 14c5372f03317d05cfba8805b199c2c8ed6e617e (diff) | |
download | rpm-a341f3d4d00a30aafb37a113d6e976eb24b6358f.tar.gz rpm-a341f3d4d00a30aafb37a113d6e976eb24b6358f.tar.bz2 rpm-a341f3d4d00a30aafb37a113d6e976eb24b6358f.zip |
typecase getpid() return to int
CVS patchset: 1050
CVS date: 1996/09/25 19:15:21
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rebuilddb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rebuilddb.c b/lib/rebuilddb.c index 5253a4aa7..4bbaad0a8 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)) { |