]> diplodocus.org Git - nmh/blobdiff - uip/mhstoresbr.c
Alter HasSuffixC()'s char * to be const.
[nmh] / uip / mhstoresbr.c
index 7e91563fd406078fa439528c2247263dc344cb51..9c38a588d2ffbec9fe84e3a3704411830db9fcf5 100644 (file)
@@ -395,7 +395,7 @@ missing_part:
     ct = *ctq++;
     if (store_content (ct, NULL, info) == NOTOK) {
 losing:
-       free ((char *) base);
+       free(base);
        return NOTOK;
     }
 
@@ -405,7 +405,7 @@ losing:
            goto losing;
     }
 
-    free ((char *) base);
+    free(base);
     return OK;
 }
 
@@ -1078,8 +1078,7 @@ get_storeproc (CT ct)
                free(cp);
                return;
        }
-       if (cp)
-           free(cp);
+        mh_xfree(cp);
     }
 
     /*
@@ -1097,8 +1096,7 @@ get_storeproc (CT ct)
            ct->c_storeproc = add (cp, NULL);
 
     }
-    if (cp)
-       free(cp);
+    mh_xfree(cp);
 }