Rozdiely pre dead/mail2sms/passwd.c medzi verziami 1.1 a 1.2
| verzia 1.1, 2001/10/25 20:05:28 |
verzia 1.2, 2001/10/27 20:32:43 |
|
|
| /* |
/* |
| * Author: Lubomir Host 'rajo' <host8@kepler.fmph.uniba.sk> |
* Author: Lubomir Host 'rajo' <host8@kepler.fmph.uniba.sk> |
| * $Log$ |
* $Log$ |
| |
* Revision 1.2 2001/10/27 20:32:43 host8 |
| |
* mail2sms.c splited to multiple files. |
| |
* Little improvements in Makefile.in. |
| |
* |
| * Revision 1.1 2001/10/25 20:05:28 host8 |
* Revision 1.1 2001/10/25 20:05:28 host8 |
| * First implementation of login with password. |
* First implementation of login with password. |
| * |
* |
| Riadok 35 static char *get_string(int what) |
|
| Riadok 39 static char *get_string(int what) |
|
| } |
} |
| site = servers[idx].desc; |
site = servers[idx].desc; |
| #ifdef DEBUG |
#ifdef DEBUG |
| fprintf(stderr, "Look for site %s...\n", site); |
if (what) { |
| |
fprintf(stderr, "Looking for passwd for site %s...\n", site); |
| |
} else { |
| |
fprintf(stderr, "Looking for login for site %s...\n", site); |
| |
} |
| #endif |
#endif |
| home_env = strdup(getenv("HOME")); |
home_env = strdup(getenv("HOME")); |
| if (home_env == NULL) { |
if (home_env == NULL) { |
| Riadok 65 static char *get_string(int what) |
|
| Riadok 73 static char *get_string(int what) |
|
| return (""); |
return (""); |
| } |
} |
| if (what == 0) { |
if (what == 0) { |
| str[strlen(str)] = '\0'; |
str[strlen(str) - 1] = '\0'; |
| free(home_env); |
free(home_env); |
| free(filename); |
free(filename); |
| return (str); |
return (str); |
Platon Group <platon@platon.sk> http://platon.sk/
|
|