head 1.3; access; symbols OPENPKG_E1_MP_HEAD:1.3 OPENPKG_E1_MP:1.3 OPENPKG_E1_MP_2_STABLE:1.3 OPENPKG_E1_FP:1.3 OPENPKG_2_STABLE_MP:1.3 OPENPKG_2_STABLE_20061018:1.3 OPENPKG_2_STABLE_20060622:1.3 OPENPKG_2_STABLE:1.3.0.4 OPENPKG_2_STABLE_BP:1.3 OPENPKG_2_5_RELEASE:1.3 OPENPKG_2_5_SOLID:1.3.0.2 OPENPKG_2_5_SOLID_BP:1.3 OPENPKG_2_4_RELEASE:1.1 OPENPKG_2_4_SOLID:1.1.0.10 OPENPKG_2_4_SOLID_BP:1.1 OPENPKG_CW_FP:1.1 OPENPKG_2_3_RELEASE:1.1 OPENPKG_2_3_SOLID:1.1.0.8 OPENPKG_2_3_SOLID_BP:1.1 OPENPKG_2_2_RELEASE:1.1 OPENPKG_2_2_SOLID:1.1.0.6 OPENPKG_2_2_SOLID_BP:1.1 OPENPKG_2_1_RELEASE:1.1 OPENPKG_2_1_SOLID:1.1.0.4 OPENPKG_2_1_SOLID_BP:1.1 OPENPKG_2_0_RELEASE:1.1 OPENPKG_2_0_SOLID:1.1.0.2 OPENPKG_2_0_SOLID_BP:1.1; locks; strict; comment @# @; 1.3 date 2005.08.17.07.30.26; author mk; state Exp; branches; next 1.2; 1.2 date 2005.08.17.06.24.31; author mk; state Exp; branches; next 1.1; 1.1 date 2003.10.23.19.14.51; author rse; state Exp; branches; next ; desc @@ 1.3 log @- let it find the right bzlib.h - bail out with exit(EXIT_FAILURE) instead of abort() (core dump) @ text @Index: bsdiff.c --- bsdiff.c.orig 2005-08-17 00:13:52.000000000 +0200 +++ bsdiff.c 2005-08-17 09:17:36.626825000 +0200 @@@@ -31,12 +31,12 @@@@ #include #include -#include #include #include #include #include #include +#include "err.h" #define MIN(x,y) (((x)<(y)) ? (x) : (y)) Index: bspatch.c --- bspatch.c.orig 2005-08-17 00:14:00.000000000 +0200 +++ bspatch.c 2005-08-17 09:17:36.627758000 +0200 @@@@ -32,9 +32,9 @@@@ #include #include #include -#include #include #include +#include "err.h" static off_t offtin(u_char *buf) { Index: err.h --- /dev/null 2005-08-17 09:19:51.000000000 +0200 +++ err.h 2005-08-17 09:19:51.704744000 +0200 @@@@ -0,0 +1,10 @@@@ +#ifndef __ERR_H__ +#define __ERR_H__ + +#include +#include + +#define err(bla, ...) { fprintf(stderr, __VA_ARGS__); fputs("\n", stderr); exit(EXIT_FAILURE); } +#define errx(bla, ...) { fprintf(stderr, __VA_ARGS__); fputs("\n", stderr); exit(EXIT_FAILURE); } + +#endif /* __ERR_H__ */ @ 1.2 log @upgrading package: bsdiff 4.2 -> 4.3 @ text @a0 14 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 +#include + +#define err(bla, ...) { fprintf(stderr, __VA_ARGS__); abort(); } +#define errx(bla, ...) { fprintf(stderr, __VA_ARGS__); abort(); } + +#endif /* __ERR_H__ */ d3 1 a3 1 +++ bsdiff.c 2005-08-17 08:08:10.970297000 +0200 d20 1 a20 1 +++ bspatch.c 2005-08-17 08:08:39.136025000 +0200 d32 14 @ 1.1 log @Make more portable by using an own minimalize err(3) stuff. Submitted by: Matthias Kurz @ text @d16 9 a24 3 --- 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 @@@@ a25 1 #include a26 1 -#include a27 2 #include #include d33 3 a35 4 --- 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 @@@@ d38 1 a41 1 #include d44 1 a44 1 ssize_t loopread(int d,void *buf,size_t nbytes) @