summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1999-02-14 20:06:05 +0000
committermickey <mickey@openbsd.org>1999-02-14 20:06:05 +0000
commitbdf792b7aa53d3339fbd8af2c86a0282194eabfd (patch)
treeb5a645b165cae84be3d6bdfff75cb0b3ceb2e73f
parentDon't retain "clear" state after an argument as been processed; (diff)
downloadwireguard-openbsd-bdf792b7aa53d3339fbd8af2c86a0282194eabfd.tar.xz
wireguard-openbsd-bdf792b7aa53d3339fbd8af2c86a0282194eabfd.zip
make z_error be a panic
-rw-r--r--sys/lib/libz/zutil.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/lib/libz/zutil.h b/sys/lib/libz/zutil.h
index af4c9c3db3c..9b7250de2e5 100644
--- a/sys/lib/libz/zutil.h
+++ b/sys/lib/libz/zutil.h
@@ -8,7 +8,7 @@
subject to change. Applications should only use zlib.h.
*/
-/* @(#) $Id: zutil.h,v 1.8 1999/02/14 19:47:37 mickey Exp $ */
+/* @(#) $Id: zutil.h,v 1.9 1999/02/14 20:06:05 mickey Exp $ */
#ifndef _Z_UTIL_H
#define _Z_UTIL_H
@@ -194,6 +194,7 @@ extern const char *z_errmsg[10]; /* indexed by 2-zlib_error */
#ifdef DEBUG
extern int z_verbose;
extern void z_error OF((char *m));
+# define z_error panic
# define Assert(cond,msg) {if(!(cond)) z_error(msg);}
# define Trace(x) {if (z_verbose>=0) printf x ;}
# define Tracev(x) {if (z_verbose>0) printf x ;}