typecast getpid() to (int)
authorewt <devnull@localhost>
Wed, 25 Sep 1996 19:11:30 +0000 (19:11 +0000)
committerewt <devnull@localhost>
Wed, 25 Sep 1996 19:11:30 +0000 (19:11 +0000)
CVS patchset: 1043
CVS date: 1996/09/25 19:11:30

install.c

index 5c94360..0cbe82c 100644 (file)
--- a/install.c
+++ b/install.c
@@ -160,7 +160,7 @@ int doInstall(char * rootdir, char ** argv, char * location, int installFlags,
            }
            packages[i] = alloca(strlen(*filename) + 30 + strlen(rootdir));
            sprintf(packages[i], "%s/var/tmp/rpm-ftp-%d-%d.tmp", rootdir, 
-                   tmpnum++, getpid());
+                   tmpnum++, (int) getpid());
            message(MESS_DEBUG, "getting %s as %s\n", *filename, packages[i]);
            fd = getFtpURL(*filename + 6, packages[i]);
            if (fd < 0) {