You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.0 KiB
44 lines
1.0 KiB
Index: err.h |
|
--- err.h.orig 2003-10-23 21:12:13.000000000 +0200 |
|
+++ err.h 2003-10-23 21:13:10.000000000 +0200 |
|
@@ -0,0 +1,10 @@ |
|
+#ifndef __ERR_H__ |
|
+#define __ERR_H__ |
|
+ |
|
+#include <stdio.h> |
|
+#include <stdlib.h> |
|
+ |
|
+#define err(bla, ...) { fprintf(stderr, __VA_ARGS__); abort(); } |
|
+#define errx(bla, ...) { fprintf(stderr, __VA_ARGS__); abort(); } |
|
+ |
|
+#endif /* __ERR_H__ */ |
|
Index: bsdiff.c |
|
--- bsdiff.c.orig 2003-10-23 21:12:13.000000000 +0200 |
|
+++ bsdiff.c 2003-10-23 21:12:37.000000000 +0200 |
|
@@ -14,10 +14,10 @@ |
|
#include <stdlib.h> |
|
#include <stdio.h> |
|
#include <string.h> |
|
-#include <err.h> |
|
#include <unistd.h> |
|
#include <fcntl.h> |
|
#include <sys/wait.h> |
|
+#include "err.h" |
|
|
|
#define MIN(x,y) (((x)<(y)) ? (x) : (y)) |
|
|
|
Index: bspatch.c |
|
--- bspatch.c.orig 2003-10-23 21:12:13.000000000 +0200 |
|
+++ bspatch.c 2003-10-23 21:12:43.000000000 +0200 |
|
@@ -13,10 +13,10 @@ |
|
|
|
#include <stdlib.h> |
|
#include <stdio.h> |
|
-#include <err.h> |
|
#include <unistd.h> |
|
#include <fcntl.h> |
|
#include <sys/wait.h> |
|
+#include "err.h" |
|
|
|
ssize_t loopread(int d,void *buf,size_t nbytes) |
|
{
|
|
|