Mercurial > pidgin
comparison src/toc.c @ 1114:c61f9c384413
[gaim-migrate @ 1124]
update to STATUS, pass -Wall, and fix some applet stupidity for failed signons.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 21 Nov 2000 01:00:45 +0000 |
parents | 4efa1ca61a2a |
children | e1078ee286ba |
comparison
equal
deleted
inserted
replaced
1113:4efa1ca61a2a | 1114:c61f9c384413 |
---|---|
45 #include "pixmaps/aol_icon.xpm" | 45 #include "pixmaps/aol_icon.xpm" |
46 #include "pixmaps/away_icon.xpm" | 46 #include "pixmaps/away_icon.xpm" |
47 #include "pixmaps/dt_icon.xpm" | 47 #include "pixmaps/dt_icon.xpm" |
48 #include "pixmaps/free_icon.xpm" | 48 #include "pixmaps/free_icon.xpm" |
49 | 49 |
50 #define REVISION "gaim:$Revision: 1123 $" | 50 #define REVISION "gaim:$Revision: 1124 $" |
51 | 51 |
52 #define TYPE_SIGNON 1 | 52 #define TYPE_SIGNON 1 |
53 #define TYPE_DATA 2 | 53 #define TYPE_DATA 2 |
54 #define TYPE_ERROR 3 | 54 #define TYPE_ERROR 3 |
55 #define TYPE_SIGNOFF 4 | 55 #define TYPE_SIGNOFF 4 |
97 #define USEROPT_SOCKSPORT 3 | 97 #define USEROPT_SOCKSPORT 3 |
98 #define USEROPT_PROXYTYPE 4 | 98 #define USEROPT_PROXYTYPE 4 |
99 | 99 |
100 static void toc_callback(gpointer, gint, GdkInputCondition); | 100 static void toc_callback(gpointer, gint, GdkInputCondition); |
101 static unsigned char *roast_password(char *); | 101 static unsigned char *roast_password(char *); |
102 int sflap_send(struct gaim_connection *, char *, int, int); | |
102 | 103 |
103 /* ok. this function used to take username/password, and return 0 on success. | 104 /* ok. this function used to take username/password, and return 0 on success. |
104 * now, it takes username/password, and returns NULL on error or a new gaim_connection | 105 * now, it takes username/password, and returns NULL on error or a new gaim_connection |
105 * on success. */ | 106 * on success. */ |
106 static void toc_login(struct aim_user *user) { | 107 static void toc_login(struct aim_user *user) { |
384 time_t signon, time_idle; | 385 time_t signon, time_idle; |
385 | 386 |
386 c = strtok(NULL, ":"); /* name */ | 387 c = strtok(NULL, ":"); /* name */ |
387 l = strtok(NULL, ":"); /* online */ | 388 l = strtok(NULL, ":"); /* online */ |
388 sscanf(strtok(NULL, ":"), "%d", &evil); | 389 sscanf(strtok(NULL, ":"), "%d", &evil); |
389 sscanf(strtok(NULL, ":"), "%d", &signon); | 390 sscanf(strtok(NULL, ":"), "%ld", &signon); |
390 sscanf(strtok(NULL, ":"), "%d", &idle); | 391 sscanf(strtok(NULL, ":"), "%d", &idle); |
391 uc = strtok(NULL, ":"); | 392 uc = strtok(NULL, ":"); |
392 | 393 |
393 logged = (l && (*l == 'T')) ? 1 : 0; | 394 logged = (l && (*l == 'T')) ? 1 : 0; |
394 | 395 |