A number of small bug fixes, some motivated by compiler warnings.
[u/mdw/catacomb] / key-io.c
index b77bab9..5c70909 100644 (file)
--- a/key-io.c
+++ b/key-io.c
@@ -553,7 +553,7 @@ int key_new(key_file *f, uint32 id, const char *type, time_t exp, key **kk)
     k->tag = 0;
     k->exp = k->del = exp;
     k->c = 0;
-    k->type = type; /* temporarily */
+    k->type = (char *)type; /* temporarily */
     sym_create(&k->a);
     if ((e = insert(f, k)) != 0)
       DESTROY(k);