Changeset daae10f
- Timestamp:
- 2010-08-07T16:33:02Z (14 years ago)
- Branches:
- master
- Children:
- 7b87539
- Parents:
- 289bd2d
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r289bd2d rdaae10f 26 26 # Expansion of variables 27 27 subdirobjs = $(foreach dir,$(subdirs),$(dir)/$(dir).o) 28 CFLAGS += -Wall29 28 30 29 all: $(OUTFILE) -
conf.c
r289bd2d rdaae10f 82 82 } 83 83 84 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:h R:u:V" ) ) >= 0 )84 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hu:V" ) ) >= 0 ) 85 85 /* ^^^^ Just to make sure we skip this step from the REHASH handler. */ 86 86 { … … 158 158 return NULL; 159 159 } 160 else if( opt == 'R' )161 {162 /* Backward compatibility; older BitlBees passed this163 info using a command-line flag. Allow people to164 upgrade from such a version for now. */165 setenv( "_BITLBEE_RESTART_STATE", optarg, 0 );166 }167 160 else if( opt == 'u' ) 168 161 { -
configure
r289bd2d rdaae10f 184 184 fi 185 185 186 echo CFLAGS=$CFLAGS >> Makefile.settings186 echo CFLAGS=$CFLAGS $CPPFLAGS >> Makefile.settings 187 187 echo CFLAGS+=-I${srcdir} -I${srcdir}/lib -I${srcdir}/protocols -I. >> Makefile.settings 188 188 … … 201 201 202 202 echo "CC=$CC" >> Makefile.settings; 203 if echo $CC | grep -qw gcc; then 204 # Apparently -Wall is gcc-specific? 205 echo CFLAGS+=-Wall >> Makefile.settings 206 fi 203 207 204 208 if [ -z "$LD" ]; then -
irc_commands.c
r289bd2d rdaae10f 38 38 out we don't require it, which will break this feature.) 39 39 Try to identify using the given password. */ 40 return root_command( irc, send_cmd ); 40 root_command( irc, send_cmd ); 41 return; 41 42 } 42 43 /* Handling in pre-logged-in state, first see if this server is -
lib/Makefile
r289bd2d rdaae10f 15 15 objects = arc.o base64.o $(EVENT_HANDLER) ftutil.o http_client.o ini.o md5.o misc.o oauth.o proxy.o sha1.o $(SSL_CLIENT) url.o xmltree.o 16 16 17 CFLAGS += -Wall18 17 LFLAGS += -r 19 18 -
lib/md5.h
r289bd2d rdaae10f 27 27 #include <sys/types.h> 28 28 #include <gmodule.h> 29 #if(__sun) 30 #include <inttypes.h> 31 #else 29 32 #include <stdint.h> 33 #endif 30 34 31 35 typedef uint8_t md5_byte_t; -
lib/oauth.c
r289bd2d rdaae10f 60 60 { 61 61 g_snprintf( (gchar*) key, HMAC_BLOCK_SIZE + 1, "%s&%s", 62 oi->sp->consumer_secret, oi->token_secret ? : "" );62 oi->sp->consumer_secret, oi->token_secret ? oi->token_secret : "" ); 63 63 } 64 64 -
lib/sha1.h
r289bd2d rdaae10f 24 24 #define _SHA1_H_ 25 25 26 #if(__sun) 27 #include <inttypes.h> 28 #else 26 29 #include <stdint.h> 30 #endif 27 31 #include <gmodule.h> 28 32 -
lib/xmltree.c
r289bd2d rdaae10f 215 215 216 216 if( node == NULL ) 217 return xt_cleanup( xt, xt->root, depth ); 217 { 218 xt_cleanup( xt, xt->root, depth ); 219 return; 220 } 218 221 219 222 if( node->flags & XT_SEEN && node == xt->root ) -
protocols/Makefile
r289bd2d rdaae10f 25 25 # Expansion of variables 26 26 subdirobjs := $(join $(subdirs),$(addprefix /,$(subdirobjs))) 27 CFLAGS += -Wall28 27 LFLAGS += -r 29 28 -
protocols/jabber/Makefile
r289bd2d rdaae10f 15 15 objects = conference.o io.o iq.o jabber.o jabber_util.o message.o presence.o s5bytestream.o sasl.o si.o 16 16 17 CFLAGS += -Wall18 17 LFLAGS += -r 19 18 -
protocols/jabber/jabber.c
r289bd2d rdaae10f 381 381 if( bud->away_state ) 382 382 imcb_log( ic, "Away state: %s", bud->away_state->full_name ); 383 imcb_log( ic, "Status message: %s", bud->away_message ? : "(none)" );383 imcb_log( ic, "Status message: %s", bud->away_message ? bud->away_message : "(none)" ); 384 384 385 385 bud = bud->next; … … 395 395 /* state_txt == NULL -> Not away. 396 396 Unknown state -> fall back to the first defined away state. */ 397 jd->away_state = state_txt ? jabber_away_state_by_name( state_txt ) 398 ? : jabber_away_state_list : NULL; 397 if( state_txt == NULL ) 398 jd->away_state = NULL; 399 else if( ( jd->away_state = jabber_away_state_by_name( state_txt ) ) == NULL ) 400 jd->away_state = jabber_away_state_list; 399 401 400 402 g_free( jd->away_message ); -
protocols/jabber/message.c
r289bd2d rdaae10f 59 59 { 60 60 room = from; 61 from = xt_find_attr( inv, "from" ) ? : from; 61 if( ( from = xt_find_attr( inv, "from" ) ) == NULL ) 62 from = room; 62 63 63 64 g_string_append_printf( fullmsg, "<< \002BitlBee\002 - Invitation to chatroom %s >>\n", room ); … … 72 73 { 73 74 bud->last_msg = time( NULL ); 74 from = bud->ext_jid ? : bud->bare_jid;75 from = bud->ext_jid ? bud->ext_jid : bud->bare_jid; 75 76 } 76 77 else -
protocols/msn/Makefile
r289bd2d rdaae10f 15 15 objects = msn.o msn_util.o ns.o passport.o sb.o tables.o 16 16 17 CFLAGS += -Wall18 17 LFLAGS += -r 19 18 -
protocols/msn/msn.c
r289bd2d rdaae10f 176 176 struct msn_data *md = ic->proto_data; 177 177 178 if( state ) 179 md->away_state = msn_away_state_by_name( state ) ? : 180 msn_away_state_list + 1; 181 else 178 if( state == NULL ) 182 179 md->away_state = msn_away_state_list; 180 else if( ( md->away_state = msn_away_state_by_name( state ) ) == NULL ) 181 md->away_state = msn_away_state_list + 1; 183 182 184 183 g_snprintf( buf, sizeof( buf ), "CHG %d %s\r\n", ++md->trId, md->away_state->code ); -
protocols/nogaim.c
r289bd2d rdaae10f 468 468 469 469 s = g_strdup_printf( "The user %s%s wants to add you to his/her buddy list.", 470 handle, realname_ ? : "" );470 handle, realname_ ? realname_ : "" ); 471 471 472 472 g_free( realname_ ); … … 491 491 cbd->ic->acc->prpl->add_buddy( cbd->ic, cbd->handle, NULL ); 492 492 493 returnimcb_ask_add_cb_no( data );493 imcb_ask_add_cb_no( data ); 494 494 } 495 495 -
protocols/nogaim.h
r289bd2d rdaae10f 39 39 #define _NOGAIM_H 40 40 41 #if(__sun) 42 #include <inttypes.h> 43 #else 41 44 #include <stdint.h> 45 #endif 46 47 #include "lib/events.h" 42 48 43 49 #include "bitlbee.h" -
protocols/oscar/Makefile
r289bd2d rdaae10f 16 16 objects = admin.o auth.o bos.o buddylist.o chat.o chatnav.o conn.o icq.o im.o info.o misc.o msgcookie.o rxhandlers.o rxqueue.o search.o service.o snac.o ssi.o stats.o tlv.o txqueue.o oscar_util.o oscar.o 17 17 18 CFLAGS += -Wall19 18 LFLAGS += -r 20 19 -
protocols/twitter/Makefile
r289bd2d rdaae10f 15 15 objects = twitter.o twitter_http.o twitter_lib.o 16 16 17 CFLAGS += -Wall18 17 LFLAGS += -r 19 18 -
protocols/twitter/twitter_lib.c
r289bd2d rdaae10f 23 23 24 24 /* For strptime(): */ 25 #if(__sun) 26 #else 25 27 #define _XOPEN_SOURCE 28 #endif 26 29 27 30 #include "twitter_http.h" -
protocols/yahoo/Makefile
r289bd2d rdaae10f 15 15 objects = yahoo.o crypt.o libyahoo2.o yahoo_fn.o yahoo_httplib.o yahoo_util.o 16 16 17 CFLAGS += - Wall -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_STRCHR -DHAVE_MEMCPY -DHAVE_GLIB17 CFLAGS += -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_STRCHR -DHAVE_MEMCPY -DHAVE_GLIB 18 18 LFLAGS += -r 19 19 -
protocols/yahoo/libyahoo2.c
r289bd2d rdaae10f 1859 1859 } 1860 1860 1861 return yahoo_https_auth_init(had); 1861 yahoo_https_auth_init(had); 1862 return; 1862 1863 1863 1864 fail: -
unix.c
r289bd2d rdaae10f 159 159 { 160 160 char *fn = ipc_master_save_state(); 161 char *env; 162 163 env = g_strdup_printf( "_BITLBEE_RESTART_STATE=%s", fn ); 164 putenv( env ); 165 g_free( fn ); 166 /* Looks like env should *not* be freed here as putenv 167 doesn't make a copy. Odd. */ 161 168 162 169 chdir( old_cwd ); 163 164 setenv( "_BITLBEE_RESTART_STATE", fn, 1 );165 g_free( fn );166 167 170 close( global.listen_socket ); 168 171
Note: See TracChangeset
for help on using the changeset viewer.