commit e7620cb191a82a2fbae8e0088c3d0511e5728688
parent 31c6d443506c0f266b40a906e3a454ccb73cad35
Author: Anselm R. Garbe <arg@10kloc.org>
Date: Thu, 12 Oct 2006 17:28:12 +0200
hotfix
Diffstat:
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/request.c b/request.c
@@ -2,6 +2,7 @@
* See LICENSE file for license details.
*/
#include "ixp.h"
+#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -212,10 +213,10 @@ respond(P9Req *r, char *error) {
switch(r->ifcall.type) {
default:
if(!error)
- cext_assert(!"Respond called on unsupported fcall type");
+ assert(!"Respond called on unsupported fcall type");
break;
case TVERSION:
- cext_assert(!error);
+ assert(!error);
free(r->ifcall.version);
pc->msize = (r->ofcall.msize < IXP_MAX_MSG) ? r->ofcall.msize : IXP_MAX_MSG;
free(pc->buf);
diff --git a/server.c b/server.c
@@ -2,6 +2,7 @@
* See LICENSE file for license details.
*/
#include "ixp.h"
+#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
@@ -35,7 +36,7 @@ ixp_server_close_conn(IXPConn *c) {
IXPServer *s = c->srv;
IXPConn **tc;
for(tc=&s->conn; *tc && *tc != c; tc=&(*tc)->next);
- cext_assert(*tc == c);
+ assert(*tc == c);
*tc = c->next;
c->closed = 1;
if(c->close)