From 6d4df0e35cee269358a2b2713431bcfe45640e0b Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 8 Apr 2009 21:30:58 +0200 Subject: [PATCH] Fix compilation with --enable-assert=soft. --- src/parse.c | 2 +- src/substitution.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parse.c b/src/parse.c index 138f102..c4f4c21 100644 --- a/src/parse.c +++ b/src/parse.c @@ -131,7 +131,7 @@ parse(struct Client *client_p, char *pbuffer, char *bufend) struct Message *mptr; s_assert(MyConnect(client_p)); - s_assert(client_p->localClient->F->fd >= 0); + s_assert(client_p->localClient->F != NULL); if(IsAnyDead(client_p)) return; diff --git a/src/substitution.c b/src/substitution.c index 37fc340..708dce2 100644 --- a/src/substitution.c +++ b/src/substitution.c @@ -35,6 +35,7 @@ #include "stdinc.h" #include "s_user.h" +#include "snomask.h" #include "match.h" #include "substitution.h"