36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
$OpenBSD: patch-bitlbee_h,v 1.5 2004/10/21 14:48:51 naddy Exp $
|
|
Use a more usefull name for the server
|
|
--- bitlbee.h.orig Sat Sep 25 21:15:15 2004
|
|
+++ bitlbee.h Thu Oct 14 15:43:33 2004
|
|
@@ -75,7 +75,7 @@
|
|
|
|
#define _( x ) x
|
|
|
|
-#define ROOT_NICK "root"
|
|
+#define ROOT_NICK "bitlbee"
|
|
#define ROOT_CHAN "#bitlbee"
|
|
#define ROOT_FN "User manager"
|
|
|
|
@@ -127,7 +127,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);
|
|
@@ -135,5 +135,12 @@ void *bitlbee_realloc(void *oldmem, size
|
|
|
|
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
|