]> diplodocus.org Git - nmh/blobdiff - sbr/seq_save.c
Fixed some of the issues noted by clang --analyze with
[nmh] / sbr / seq_save.c
index 83753afb5a1be551f068a06d9768b268b823ee4d..5b06dcdfe8019c73d7ea54e299b446906d487c26 100644 (file)
@@ -91,7 +91,7 @@ priv:
                    rewind(fp);
                    ftruncate(fileno(fp), 0);
                } else if ((fp = lkfopendata (seqfile, "w")) == NULL
-                       && (unlink (seqfile) == -1 ||
+                       && (m_unlink (seqfile) == -1 ||
                            (fp = lkfopendata (seqfile, "w")) == NULL)) {
                    admonish (attr, "unable to write");
                    goto priv;
@@ -118,7 +118,7 @@ priv:
         * public sequences, then remove that file.
         */
        if (!is_readonly(mp))
-           unlink (seqfile);
+           (void) m_unlink (seqfile);
     }
 
     /*