Remiver compiler warnings on alpha.
authorjbj <devnull@localhost>
Fri, 12 May 2000 23:12:15 +0000 (23:12 +0000)
committerjbj <devnull@localhost>
Fri, 12 May 2000 23:12:15 +0000 (23:12 +0000)
CVS patchset: 3725
CVS date: 2000/05/12 23:12:15

lib/falloc.c
lib/falloc.h
lib/rpminstall.c

index c6a5d53..7207f0c 100644 (file)
@@ -43,7 +43,7 @@ FDIO_t fadio = /*@-compmempass@*/ &fadio_s /*@=compmempass@*/ ;
 /* =============================================================== */
 
 /* flags are the same as for open(2) - NULL returned on error */
-FD_t fadOpen(const char * path, int flags, int perms)
+FD_t fadOpen(const char * path, int flags, mode_t perms)
 {
     struct faFileHeader newHdr;
     FD_t fd;
index da6f292..64861c4 100644 (file)
@@ -9,7 +9,7 @@
 extern "C" {
 #endif
 
-/*@null@*/ FD_t        fadOpen         (const char * path, int flags, int perms);
+/*@null@*/ FD_t        fadOpen         (const char * path, int flags, mode_t perms);
 unsigned int   fadAlloc        (FD_t fd, unsigned int size); /* 0 on failure */
 void           fadFree         (FD_t fd, unsigned int offset);
 
index 29a5d15..23926e9 100644 (file)
@@ -31,7 +31,7 @@ static void * showProgress(const Header h, const rpmCallbackType what,
                           const unsigned long total,
                           const void * pkgKey, void * data) {
     char * s;
-    int flags = (int) data;
+    int flags = (int) ((long)data);
     void * rc = NULL;
     const char * filename = pkgKey;
     static FD_t fd;
@@ -338,7 +338,7 @@ int rpmInstall(const char * rootdir, const char ** fileArgv, int transFlags,
        rpmProblemSet probs = NULL;
 ;
        rpmMessage(RPMMESS_DEBUG, _("installing binary packages\n"));
-       rc = rpmRunTransactions(rpmdep, showProgress, (void *) notifyFlags
+       rc = rpmRunTransactions(rpmdep, showProgress, (void *) ((long)notifyFlags)
                                    NULL, &probs, transFlags, probFilter);
 
        if (rc < 0) {
@@ -365,7 +365,7 @@ int rpmInstall(const char * rootdir, const char ** fileArgv, int transFlags,
 
            if (!(transFlags & RPMTRANS_FLAG_TEST))
                numFailed += rpmInstallSourcePackage(rootdir, fd, NULL,
-                               showProgress, (void *) notifyFlags, NULL);
+                               showProgress, (void *) ((long)notifyFlags), NULL);
 
            Fclose(fd);
        }