progs: Fix a number of format-related errors.
[u/mdw/catacomb] / progs / catsign.c
index 48f8fcb..47a951e 100644 (file)
@@ -437,7 +437,7 @@ static void sig_writesig(enc *e, sigmsg *s)
   { chunk_write(e, s->sig.buf, s->sig.len); }
 
 static void diechoke(const char *m, void *p)
-  { die(EXIT_FAILURE, "%s%s%s", p, p ? ": " : "", m); }
+  { die(EXIT_FAILURE, "%s%s%s", (const char *)p, p ? ": " : "", m); }
 
 static void sig_readheader(enc *e, sigmsg *s,
                           void (*choke)(const char *, void *), void *p)
@@ -536,7 +536,7 @@ static int sign(int argc, char *argv[])
     ofp = stdout;
   else if ((ofp = fopen(of, eo->wmode)) == 0) {
     die(EXIT_FAILURE, "couldn't open file `%s' for output: %s",
-       ofp, strerror(errno));
+       of, strerror(errno));
   }
 
   /* --- Start the work --- */