| verzia 1.4, 2001/11/12 16:08:00 |
verzia 1.5, 2001/11/12 20:19:10 |
|
|
| /* |
/* |
| * Author: Lubomir Host 'rajo' <host8@kepler.fmph.uniba.sk> |
* Author: Lubomir Host 'rajo' <host8@kepler.fmph.uniba.sk> |
| * $Log$ |
* $Log$ |
| |
* Revision 1.5 2001/11/12 20:19:10 host8 |
| |
* http_connect() probably works fine. |
| |
* Some problems with http_requests for www.mtnsms.com. |
| |
* |
| * Revision 1.4 2001/11/12 16:08:00 host8 |
* Revision 1.4 2001/11/12 16:08:00 host8 |
| * Big improvements in http. connect() doesn't work correctly yet. |
* Big improvements in http. connect() doesn't work correctly yet. |
| * |
* |
|
|
| # include "config.h" |
# include "config.h" |
| #endif |
#endif |
| #include "passwd.h" |
#include "passwd.h" |
| |
#include "strings.h" |
| #include "mail2sms.h" |
#include "mail2sms.h" |
| |
|
| #define MAX_LOGIN_LEN 1024 |
#define MAX_LOGIN_LEN 1024 |
| Riadok 92 static char *get_string(int what, int si |
|
| Riadok 97 static char *get_string(int what, int si |
|
| str[strlen(str) - 1] = '\0'; |
str[strlen(str) - 1] = '\0'; |
| my_free(home_env); |
my_free(home_env); |
| my_free(filename); |
my_free(filename); |
| return (str); |
return (strrmeol(str)); |
| } else { |
} else { |
| if (fgets(str, MAX_LOGIN_LEN, f) == NULL) { |
if (fgets(str, MAX_LOGIN_LEN, f) == NULL) { |
| fprintf(stderr, "Can't read password from %s!\n", filename); |
fprintf(stderr, "Can't read password from %s!\n", filename); |
| Riadok 107 static char *get_string(int what, int si |
|
| Riadok 112 static char *get_string(int what, int si |
|
| fprintf(stderr, "Password readed successfully (%d chars).\n", |
fprintf(stderr, "Password readed successfully (%d chars).\n", |
| strlen(str)); |
strlen(str)); |
| #endif |
#endif |
| return (str); |
return (strrmeol(str)); |
| } |
} |
| return (""); |
return (""); |
| } |
} |