summaryrefslogtreecommitdiff
path: root/buffer-diff.c
diff options
context:
space:
mode:
authorJeff Muizelaar <jeff@infidigm.net>2006-12-11 13:04:29 -0500
committerJeff Muizelaar <jeff@infidigm.net>2006-12-11 13:04:29 -0500
commiteea2a061f6b2e179e9848586d0375c5c88ee655a (patch)
tree9e37cfc277f6733359dce8c2780ec87362b5a1da /buffer-diff.c
parented76569fcdbecac80803e1b8901bc00a7589cb70 (diff)
Rename xmalloc.[ch] to util.[ch] and move xunlink from buffer-diff.c
into util.c.
Diffstat (limited to 'buffer-diff.c')
-rw-r--r--buffer-diff.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/buffer-diff.c b/buffer-diff.c
index c0fa2eb..227e218 100644
--- a/buffer-diff.c
+++ b/buffer-diff.c
@@ -24,25 +24,12 @@
* Author: Richard D. Worth <richard@theworths.org> */
#include <stdio.h>
-#include <unistd.h>
-#include <errno.h>
-#include <string.h>
#include <stdint.h>
#include "buffer-diff.h"
#include "read-png.h"
#include "write-png.h"
-#include "xmalloc.h"
-
-static void
-xunlink (const char *pathname)
-{
- if (unlink (pathname) < 0 && errno != ENOENT) {
- fprintf (stderr, " Error: Cannot remove %s: %s\n",
- pathname, strerror (errno));
- exit (1);
- }
-}
+#include "util.h"
int
buffer_diff (unsigned char *buf_a,