Changeset 1eddf6b
- Timestamp:
- 2005-12-08T12:30:43Z (19 years ago)
- Branches:
- master
- Children:
- c2295f7
- Parents:
- c3ffa45
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
bitlbee.c
rc3ffa45 r1eddf6b 244 244 } 245 245 246 int bitlbee_load( irc_t *irc, c har* password )246 int bitlbee_load( irc_t *irc, const char* password ) 247 247 { 248 248 char s[512]; -
bitlbee.h
rc3ffa45 r1eddf6b 127 127 int root_command_string( irc_t *irc, user_t *u, char *command, int flags ); 128 128 int root_command( irc_t *irc, char *command[] ); 129 int bitlbee_load( irc_t *irc, c har *password );129 int bitlbee_load( irc_t *irc, const char *password ); 130 130 int bitlbee_save( irc_t *irc ); 131 131 void bitlbee_shutdown( gpointer data ); -
crypting.c
rc3ffa45 r1eddf6b 67 67 /* USE WITH CAUTION! 68 68 Sets pass without checking */ 69 void setpassnc (irc_t *irc, char *pass) { 69 void setpassnc (irc_t *irc, const char *pass) 70 { 70 71 if (!set_find (irc, "password")) 71 72 set_add (irc, "password", NULL, passchange); … … 81 82 } 82 83 83 char *passchange (irc_t *irc, void *set, c har *value) {84 char *passchange (irc_t *irc, void *set, const char *value) { 84 85 setpassnc (irc, value); 85 86 return (NULL); 86 87 } 87 88 88 int setpass (irc_t *irc, char *pass, char* md5sum) { 89 int setpass (irc_t *irc, const char *pass, const char* md5sum) 90 { 89 91 md5_state_t md5state; 90 92 md5_byte_t digest[16]; -
crypting.h
rc3ffa45 r1eddf6b 24 24 */ 25 25 26 void setpassnc (irc_t *irc, c har *pass); /* USE WITH CAUTION! */27 char *passchange (irc_t *irc, void *set, c har *value);28 int setpass (irc_t *irc, c har *pass,char* md5sum);26 void setpassnc (irc_t *irc, const char *pass); /* USE WITH CAUTION! */ 27 char *passchange (irc_t *irc, void *set, const char *value); 28 int setpass (irc_t *irc, const char *pass, const char* md5sum); 29 29 char *hashpass (irc_t *irc); 30 30 char *obfucrypt (irc_t *irc, char *line); -
nick.c
rc3ffa45 r1eddf6b 27 27 #include "bitlbee.h" 28 28 29 void nick_set( irc_t *irc, c har *handle, int proto,char *nick )29 void nick_set( irc_t *irc, const char *handle, int proto, const char *nick ) 30 30 { 31 31 nick_t *m = NULL, *n = irc->nicks; … … 56 56 } 57 57 58 char *nick_get( irc_t *irc, c har *handle, int proto, const char *realname )58 char *nick_get( irc_t *irc, const char *handle, int proto, const char *realname ) 59 59 { 60 60 static char nick[MAX_NICK_LENGTH+1]; … … 129 129 } 130 130 131 void nick_del( irc_t *irc, c har *nick )131 void nick_del( irc_t *irc, const char *nick ) 132 132 { 133 133 nick_t *l = NULL, *n = irc->nicks; … … 176 176 } 177 177 178 int nick_ok( c har *nick )179 { 180 c har *s;178 int nick_ok( const char *nick ) 179 { 180 const char *s; 181 181 182 182 /* Empty/long nicks are not allowed */ … … 237 237 } 238 238 239 int nick_cmp( c har *a,char *b )239 int nick_cmp( const char *a, const char *b ) 240 240 { 241 241 char aa[1024] = "", bb[1024] = ""; … … 253 253 } 254 254 255 char *nick_dup( char *nick ) 256 { 257 char *cp; 258 259 cp = g_new0 ( char, MAX_NICK_LENGTH + 1 ); 260 strncpy( cp, nick, MAX_NICK_LENGTH ); 261 262 return( cp ); 263 } 255 char *nick_dup( const char *nick ) 256 { 257 return g_strndup( nick, MAX_NICK_LENGTH ); 258 } -
nick.h
rc3ffa45 r1eddf6b 32 32 } nick_t; 33 33 34 void nick_set( irc_t *irc, c har *handle, int proto,char *nick );35 char *nick_get( irc_t *irc, c har *handle, int proto, const char *realname );36 void nick_del( irc_t *irc, c har *nick );34 void nick_set( irc_t *irc, const char *handle, int proto, const char *nick ); 35 char *nick_get( irc_t *irc, const char *handle, int proto, const char *realname ); 36 void nick_del( irc_t *irc, const char *nick ); 37 37 void nick_strip( char *nick ); 38 38 39 int nick_ok( c har *nick );39 int nick_ok( const char *nick ); 40 40 int nick_lc( char *nick ); 41 41 int nick_uc( char *nick ); 42 int nick_cmp( c har *a,char *b );43 char *nick_dup( c har *nick );42 int nick_cmp( const char *a, const char *b ); 43 char *nick_dup( const char *nick );
Note: See TracChangeset
for help on using the changeset viewer.