diff options
author | Nathan Scott <nathans@sgi.com> | 2001-04-09 06:32:28 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2001-04-09 06:32:28 +0000 |
commit | 0c2c5d9e34c4d7c099b67c2bd7c3d057473fc568 (patch) | |
tree | fea17212f458a195dc8d8bc9cf214a398c3b341b /common | |
parent | 46daebcb254edb816d3fc24cf104d72ee0de2555 (diff) | |
download | xfsdump-dev-0c2c5d9e34c4d7c099b67c2bd7c3d057473fc568.tar.gz |
ensure parameter types match fprintf type directives for both
32 and 64 bit machines.
Diffstat (limited to 'common')
-rw-r--r-- | common/content_common.c | 2 | ||||
-rw-r--r-- | common/drive_minrmt.c | 2 | ||||
-rw-r--r-- | common/getdents.c | 2 | ||||
-rw-r--r-- | common/main.c | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/common/content_common.c b/common/content_common.c index e814cfe9..92088cab 100644 --- a/common/content_common.c +++ b/common/content_common.c @@ -88,7 +88,7 @@ retry: sprintf( question, "please change media in " "drive %u\n", - drivep->d_index ); + (unsigned int)drivep->d_index ); querycnt = 0; querystr[ querycnt++ ] = question; ASSERT( querycnt <= QUERYMAX ); diff --git a/common/drive_minrmt.c b/common/drive_minrmt.c index 290c506d..d0c45f8c 100644 --- a/common/drive_minrmt.c +++ b/common/drive_minrmt.c @@ -3848,7 +3848,7 @@ display_ring_metrics( drive_t *drivep, intgen_t mlog_flags ) ASSERT( strlen( bufszbuf ) < sizeof( bufszbuf )); bufszsfxp = "MB"; } else { - sprintf( bufszbuf, "%u", tape_recsz / 0x400 ); + sprintf( bufszbuf, "%u", (unsigned int)(tape_recsz / 0x400) ); bufszsfxp = "KB"; } diff --git a/common/getdents.c b/common/getdents.c index fe7eb000..f909d0fd 100644 --- a/common/getdents.c +++ b/common/getdents.c @@ -94,7 +94,7 @@ getdents_wrap (int fd, char *buf, size_t nbytes) dp = (struct dirent *) buf; skdp = kdp = malloc (red_nbytes); - retval = getdents (fd, (struct kernel_dirent *) kdp, red_nbytes); + retval = getdents (fd, (struct dirent *) kdp, red_nbytes); if (retval == -1) return -1; diff --git a/common/main.c b/common/main.c index 34018d91..ad7355e4 100644 --- a/common/main.c +++ b/common/main.c @@ -959,8 +959,8 @@ void usage( void ) { char linebuf[ 200 ]; - size_t pfxsz; - size_t ps; + int pfxsz; + int ps; char *ns = ""; sprintf( linebuf, |