summaryrefslogtreecommitdiffstats
path: root/isomd5sum
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2005-03-02 02:05:32 +0000
committerPeter Jones <pjones@redhat.com>2005-03-02 02:05:32 +0000
commit730fce8abc94c82e46a50c08b5ed37ca19af126a (patch)
treea18eb88b1512b5bd4d41efcd9d68c3823f499269 /isomd5sum
parent8449b42c58a64f23bfb382e4b83de723d11ab8cb (diff)
downloadanaconda-730fce8abc94c82e46a50c08b5ed37ca19af126a.tar.gz
anaconda-730fce8abc94c82e46a50c08b5ed37ca19af126a.tar.xz
anaconda-730fce8abc94c82e46a50c08b5ed37ca19af126a.zip
mediasum doesn't need to be unsigned
buf gets reused where gcc wants it to be "char *", so cast it there.
Diffstat (limited to 'isomd5sum')
-rw-r--r--isomd5sum/libimplantisomd5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/isomd5sum/libimplantisomd5.c b/isomd5sum/libimplantisomd5.c
index f727f54f5..67a9fda5c 100644
--- a/isomd5sum/libimplantisomd5.c
+++ b/isomd5sum/libimplantisomd5.c
@@ -93,7 +93,7 @@ int implantISOFile(char *fname, int supported, int forceit, int quiet, char **er
unsigned char buf[2048];
unsigned char orig_appdata[512];
unsigned char new_appdata[512];
- unsigned char mediasum[33];
+ char mediasum[33];
char md5str[40];
MD5_CTX md5ctx;
@@ -171,8 +171,8 @@ int implantISOFile(char *fname, int supported, int forceit, int quiet, char **er
loc = writeAppData(new_appdata, "ISO MD5SUM = ", loc);
loc = writeAppData(new_appdata, md5str, loc);
loc = writeAppData(new_appdata, ";", loc);
- snprintf(buf, sizeof(buf), "SKIPSECTORS = %d", SKIPSECTORS);
- loc = writeAppData(new_appdata, buf, loc);
+ snprintf((char *)buf, sizeof(buf), "SKIPSECTORS = %d", SKIPSECTORS);
+ loc = writeAppData(new_appdata, (char *)buf, loc);
loc = writeAppData(new_appdata, ";", loc);
if (supported) {