@endif@
CFLAGS=
-CC=gcc
LEX=flex
MFLAGS=
@endif@
MFLAGS+=CHECKEDSETTINGS=1
+CFLAGS+=-I./ -DBUILDID=$(BUILDID) -fPIC
CFLAGS+=-Wall -g -finline-functions -funroll-loops -Werror=format-security
+
+@ifndef@ CLANG
@ifndef@ NOC99
CFLAGS+=-std=c99
@endif@
-CFLAGS+=-I./ -DBUILDID=$(BUILDID) -fPIC -export-dynamic
+CFLAGS+=-export-dynamic
+@endif@
+
int i,j;
int newuser=0;
int usercount;
- void *args[2];
+ void *args[3];
if (cargc<1) {
chanservstdmessage(sender, QM_NOTENOUGHPARAMS, "chanlev");
void spawnclones(unsigned int count) {
nick *np;
unsigned int i,j;
- char nick[11], ident[10], host[40];
+ char nick[11], ident[11], host[40];
channel *cp;
for (i=0;i<count;i++) {
for(i=0;i<nclones;i++) {
deregisterlocaluser(clones[i], NULL);
}
-}
\ No newline at end of file
+}
moduledeps[i].reloading=0;
/* Do nothing if this module is not loaded */
- i=getindex(modulebuf);
- if (i<0)
+ if (getindex(modulebuf)<0)
return;
if ((mdp=getmoduledep(modulebuf))) {
};
struct nsmpool {
- struct nsminfo first;
-
unsigned long count;
size_t size;
+ struct nsminfo first;
};
extern struct nsmpool nsmpools[MAXPOOL];
SSTRING_MMAP=0
HOOKS_NEW=0
XSB_ENGINE=pre
+#CLANG=0 # remember to set CC
sstring *mydesc;
char *conto,*conpass;
long portnum,pingfreq;
- socklen_t opt=1460;
+/* socklen_t opt=1460;*/
nextline=inbuf;
bytesleft=0;
#include <sys/socket.h>
#include <netinet/in.h>
+#ifndef __USE_MISC
#define __USE_MISC /* inet_aton */
+#endif
#include <arpa/inet.h>
#include <sys/un.h>
int i,j,k,l;
int tot,emp;
int themax;
- float details[13];
+ float details[14];
cip=findchanindex(argv[0]);
#include "../lib/strlfunc.h"
#include "patriciasearch.h"
#include "../lib/version.h"
+#include "../newsearch/newsearch.h"
MODULE_VERSION("")
tree = parse_string(reg_nodesearch, cargv[arg]);
if(!tree) {
+#ifdef NEWSEARCH_NEWPARSER
displaystrerror(reply, sender, cargv[arg]);
+#else
+ reply(sender,"Something went wrong.");
+#endif
return CMD_ERROR;
}
#include <stdarg.h>
#include <string.h>
+#ifndef __USE_POSIX199309
#define __USE_POSIX199309
+#endif
+
#include <time.h>
#include "../core/config.h"
size_t len = strlcpy(obuf, buf, sizeof(obuf));
if((len < sizeof(obuf)) && (len > 0)) {
- size_t i;
+ int i;
for(i=len-1;i>=0;i--) {
if(obuf[i] != ' ')
break;
return CMD_ERROR;
}
- for(i=0,tg=tglist;i<totalcount&&th;tg=tg->next,i++)
+ for(i=0,tg=tglist;i<totalcount&&tg;tg=tg->next,i++)
atg[i] = tg;
qsort(atg, totalcount, sizeof(trustgroup *), comparetgs);