openbsd-ports/net/bitlbee/patches/patch-bitlbee_h
naddy fa0b766f17 Update to 0.90a: fixes Yahoo support.
From: Andrew Dalgleish <openbsd@ajd.net.au>
2004-07-01 16:11:59 +00:00

36 lines
1.0 KiB
Plaintext

$OpenBSD: patch-bitlbee_h,v 1.4 2004/07/01 16:11:59 naddy Exp $
Use a more usefull name for the server
--- bitlbee.h.orig Wed May 19 05:36:42 2004
+++ bitlbee.h Sun Jun 27 16:50:35 2004
@@ -79,7 +79,7 @@
#define _( x ) x
-#define ROOT_NICK "root"
+#define ROOT_NICK "bitlbee"
#define ROOT_CHAN "#bitlbee"
#define ROOT_FN "User manager"
@@ -131,7 +131,7 @@ int root_command( irc_t *irc, char *comm
int bitlbee_load( irc_t *irc, char *password );
int bitlbee_save( irc_t *irc );
double gettime( void );
-G_MODULE_EXPORT void http_encode( char *s );
+G_MODULE_EXPORT void http_encode( char *s, size_t s_len );
G_MODULE_EXPORT void http_decode( char *s );
void *bitlbee_alloc(size_t size);
@@ -142,5 +142,12 @@ G_MODULE_EXPORT irc_t *get_IRC();
extern irc_t *IRC;
extern global_t global;
extern GList *connection_list;
+
+#define COMPILE_TIME_ASSERT(ex) do {\
+typedef char COMPILE_TIME_ASSERTION_FAILURE[(ex) ? 1 : -1];\
+} while(0)
+
+#define FILE_SCOPED_COMPILE_TIME_ASSERT(ex) \
+extern char COMPILE_TIME_ASSERTION_FAILURE[(ex) ? 1 : -1];
#endif