Rozdiely pre dead/mail2sms/passwd.c medzi verziami 1.3 a 1.4
| verzia 1.3, 2001/10/30 17:24:02 |
verzia 1.4, 2001/11/12 16:08:00 |
|
|
| /* |
/* |
| * Author: Lubomir Host 'rajo' <host8@kepler.fmph.uniba.sk> |
* Author: Lubomir Host 'rajo' <host8@kepler.fmph.uniba.sk> |
| * $Log$ |
* $Log$ |
| |
* Revision 1.4 2001/11/12 16:08:00 host8 |
| |
* Big improvements in http. connect() doesn't work correctly yet. |
| |
* |
| * Revision 1.3 2001/10/30 17:24:02 host8 |
* Revision 1.3 2001/10/30 17:24:02 host8 |
| * New implementation of http request. |
* New implementation of http request. |
| * |
* |
|
|
| #include "passwd.h" |
#include "passwd.h" |
| #include "mail2sms.h" |
#include "mail2sms.h" |
| |
|
| |
#define MAX_LOGIN_LEN 1024 |
| |
|
| // static char *get_string(int what) {{{ |
// static char *get_string(int what) {{{ |
| static char *get_string(int what, int silence) |
static char *get_string(int what, int silence) |
| { |
{ |
| Riadok 77 static char *get_string(int what, int si |
|
| Riadok 82 static char *get_string(int what, int si |
|
| my_free(filename); |
my_free(filename); |
| return (""); |
return (""); |
| } |
} |
| |
#ifdef DEBUG |
| |
else |
| |
if (debug > 7) |
| |
fprintf(stderr, "Login readed successfully (%d chars).\n", |
| |
strlen(str)); |
| |
#endif |
| if (what == 0) { |
if (what == 0) { |
| str[strlen(str) - 1] = '\0'; |
str[strlen(str) - 1] = '\0'; |
| my_free(home_env); |
my_free(home_env); |
| Riadok 90 static char *get_string(int what, int si |
|
| Riadok 101 static char *get_string(int what, int si |
|
| my_free(filename); |
my_free(filename); |
| return (""); |
return (""); |
| } |
} |
| |
#ifdef DEBUG |
| |
else |
| |
if (debug > 7) |
| |
fprintf(stderr, "Password readed successfully (%d chars).\n", |
| |
strlen(str)); |
| |
#endif |
| |
return (str); |
| } |
} |
| return (""); |
return (""); |
| } |
} |
Platon Group <platon@platon.sk> http://platon.sk/
|
|