Fix up some warnings that show up on ppc
authorEric Andersen <andersen@codepoet.org>
Mon, 25 Jun 2001 19:31:48 +0000 (19:31 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 25 Jun 2001 19:31:48 +0000 (19:31 -0000)
archival/dpkg.c
coreutils/ls.c
dpkg.c
ls.c

index 7dd46be..01ddc7b 100644 (file)
@@ -837,7 +837,7 @@ extern int dpkg_main(int argc, char **argv)
                optind++;
        }
 
-       make_directory(infodir, S_IRWXU, FILEUTILS_RECUR);
+       make_directory((char *)infodir, S_IRWXU, FILEUTILS_RECUR);
 
        status = status_read();
 
index c54b6a4..d9ecf04 100644 (file)
@@ -605,7 +605,7 @@ static int list_single(struct dnode *dn)
        for (i=0; i<=31; i++) {
                switch (list_fmt & (1<<i)) {
                        case LIST_INO:
-                               printf("%7ld ", dn->dstat.st_ino);
+                               printf("%7ld ", (long int)dn->dstat.st_ino);
                                column += 8;
                                break;
                        case LIST_BLOCKS:
diff --git a/dpkg.c b/dpkg.c
index 7dd46be..01ddc7b 100644 (file)
--- a/dpkg.c
+++ b/dpkg.c
@@ -837,7 +837,7 @@ extern int dpkg_main(int argc, char **argv)
                optind++;
        }
 
-       make_directory(infodir, S_IRWXU, FILEUTILS_RECUR);
+       make_directory((char *)infodir, S_IRWXU, FILEUTILS_RECUR);
 
        status = status_read();
 
diff --git a/ls.c b/ls.c
index c54b6a4..d9ecf04 100644 (file)
--- a/ls.c
+++ b/ls.c
@@ -605,7 +605,7 @@ static int list_single(struct dnode *dn)
        for (i=0; i<=31; i++) {
                switch (list_fmt & (1<<i)) {
                        case LIST_INO:
-                               printf("%7ld ", dn->dstat.st_ino);
+                               printf("%7ld ", (long int)dn->dstat.st_ino);
                                column += 8;
                                break;
                        case LIST_BLOCKS: