aboutsummaryrefslogtreecommitdiff
path: root/usrsctplib/user_environment.h
diff options
context:
space:
mode:
authortuexen <tuexen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2012-05-20 09:06:10 +0000
committertuexen <tuexen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2012-05-20 09:06:10 +0000
commit63f242b5c8a441591c60891624211398507510e8 (patch)
treefb3bd15a7373887fe672e583f91d931ca98230ff /usrsctplib/user_environment.h
parentaa48f451f1e8f569b5471914eca7442de7c035ad (diff)
downloadusrsctp-63f242b5c8a441591c60891624211398507510e8.tar.gz
panic() is only used for INVARIANTS.
Diffstat (limited to 'usrsctplib/user_environment.h')
-rwxr-xr-xusrsctplib/user_environment.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/usrsctplib/user_environment.h b/usrsctplib/user_environment.h
index 106bb6a7..873868c1 100755
--- a/usrsctplib/user_environment.h
+++ b/usrsctplib/user_environment.h
@@ -14,12 +14,12 @@
/* maxsockets is used in SCTP_ZONE_INIT call. It refers to
* kern.ipc.maxsockets kernel environment variable.
- */
+ */
extern int maxsockets;
/* int hz; is declared in sys/kern/subr_param.c and refers to kernel timer frequency.
* See http://ivoras.sharanet.org/freebsd/vmware.html for additional info about kern.hz
- * hz is initialized in void init_param1(void) in that file.
+ * hz is initialized in void init_param1(void) in that file.
*/
extern int hz;
@@ -61,10 +61,14 @@ extern u_short ip_id;
#include <assert.h>
#define KASSERT(exp,msg) assert(exp)
-#define panic(arg1) do { \
- perror(arg1); \
- exit(1); \
+#if defined(INVARIANTS)
+#define panic(arg1) \
+ do { \
+ perror(arg1);\
+ exit(1);\
} while (0)
+#endif
+
/* necessary for sctp_pcb.c */
extern int ip_defttl;