]> diplodocus.org Git - nmh/blobdiff - uip/forwsbr.c
Added const to last argument of trace_cb signature, it'll be
[nmh] / uip / forwsbr.c
index 48fecb179a6b05f50463e004bf499c2988ff435c..295507d61482ee426f000f8c2b1166228593543d 100644 (file)
@@ -174,9 +174,11 @@ finished:
     }
 
     cp = m_mktemp2(NULL, invo_name, NULL, &tmp);
-    if (cp == NULL) adios("forw", "unable to create temporary file");
+    if (cp == NULL) {
+       adios(NULL, "unable to create temporary file in %s", get_temp_dir());
+    }
     strncpy (tmpfil, cp, sizeof(tmpfil));
-    unlink (tmpfil);
+    (void) m_unlink (tmpfil);
     if ((in = dup (fileno (tmp))) == NOTOK)
        adios ("dup", "unable to");