fi
$RM -f $EXEC $TMP
cat > $TMP <<__EOF__
-#include <sys/types.h>
-int main(void)
-{
- u_int32_t foo;
- return 0;
-}
-__EOF__
-$COMP >/dev/null 2>&1
-if [ $? -ne 0 ] ; then
- echo $n " u_int32_t$c"
- $RM -f Makefile.tmp
- sed -e "s@^NEED_U_INT32_T=\(.*\)@NEED_U_INT32_T=-DNEED_U_INT32_T@" Makefile > Makefile.tmp
- cp Makefile.tmp Makefile
- $RM -f Makefile.tmp
-else
- $RM -f Makefile.tmp
- sed -e "s@^NEED_U_INT32_T=\(.*\)@NEED_U_INT32_T=@" Makefile > Makefile.tmp
- cp Makefile.tmp Makefile
- $RM -f Makefile.tmp
-fi
-$RM -f $EXEC $TMP
-cat > $TMP <<__EOF__
#$STRINGH STRINGH
#$STRINGSH STRINGSH
#ifdef STRINGH
#
IRCDDIR=/usr/local/lib/ircd
-# [CHANGEME]
-# If you get a compile-time error dealing with u_int32_t, comment out
-# this line.
-# NEED_U_INT32_T= -DNEED_U_INT32_T
-NEED_U_INT32_T=
-
-CFLAGS=-I$(INCLUDEDIR) $(XCFLAGS) $(NEED_U_INT32_T)
+CFLAGS=-I$(INCLUDEDIR) $(XCFLAGS) $(NEED_U_INT32_T)
SHELL=/bin/sh
SUBDIRS=src
InnerFIRE */
#ifdef NOSPOOF
-extern u_int32_t NOSPOOF_SEED01, NOSPOOF_SEED02 ;
+extern uint32_t NOSPOOF_SEED01, NOSPOOF_SEED02 ;
#endif /* NOSPOOF*/
#define BREPORT_DO_DNS "NOTICE AUTH :*** Looking up your hostname...\r\n"
#include <zlib.h>
#endif
-#ifdef NEED_U_INT32_T
-typedef unsigned int u_int32_t; /* XXX Hope this works! */
-#endif
-
#include "class.h"
#include "dbuf.h" /* THIS REALLY SHOULDN'T BE HERE!!! --msa */
Link *silence; /* chain of silence pointer blocks */
char *away; /* pointer to away message */
time_t last;
- u_int32_t servicestamp; /* Services' time stamp variable */
+ uint32_t servicestamp; /* Services' time stamp variable */
int refcnt; /* Number of times this block is referenced */
int joined; /* number of channels joined */
char username[USERLEN+1];
struct Event {
void (*func)(char *);
char arg[ARGLEN+1];
- u_int32_t exectime;
+ uint32_t exectime;
aEvent *next, *prev;
};
dbuf sendQ; /* Outgoing message queue--if socket full */
dbuf recvQ; /* Hold for data incoming yet to be parsed */
#ifdef NOSPOOF
- u_int32_t nospoof; /* Anti-spoofing random number */
+ uint32_t nospoof; /* Anti-spoofing random number */
#endif
long oflag; /* Operator access flags -Cabal95 */
long proto; /* ProtoCtl options */
#endif
#ifdef NOSPOOF
-u_int32_t NOSPOOF_SEED01, NOSPOOF_SEED02;
+uint32_t NOSPOOF_SEED01, NOSPOOF_SEED02;
#endif /* NOSPOOF */
int R_do_dns, R_fin_dns, R_fin_dnsc, R_fail_dns, R_do_id, R_fin_id, R_fail_id;
* QUESTION: Replace this with SHA, which as generally received better
* reviews from the cryptographic community?
*/
-void MD5Init (u_int32_t buf[4])
+void MD5Init (uint32_t buf[4])
{
buf[0] = 0x67452301;
buf[1] = 0xefcdab89;
* The core of the MD5 algorithm, this alters an existing MD5 hash to
* reflect the addition of 16 longwords of new data.
*/
-void MD5Transform (u_int32_t buf[4], u_int32_t in[16])
+void MD5Transform (uint32_t buf[4], uint32_t in[16])
{
- u_int32_t a, b, c, d;
+ uint32_t a, b, c, d;
a = buf[0];
b = buf[1];
#ifdef NOSPOOF
/* From md5.c */
-void MD5Init (u_int32_t[]);
-void MD5Transform (u_int32_t[], u_int32_t[]);
+void MD5Init (uint32_t[]);
+void MD5Transform (uint32_t[], uint32_t[]);
#endif
/*
int differ = 1;
#ifdef NOSPOOF
- u_int32_t md5data[16];
- static u_int32_t md5hash[4];
+ uint32_t md5data[16];
+ static uint32_t md5hash[4];
#endif
/*
{
#define UFLAGS (UMODE_INVISIBLE|UMODE_SERVNOTICE)
char *username, *host, *server, *realname;
- u_int32_t sstamp = 0;
+ uint32_t sstamp = 0;
anUser *user;
if (IsServer (cptr) && !IsUnknown (sptr))