comparison src/protocols/zephyr/ZVariables.c @ 4272:37fd8ad463ba

[gaim-migrate @ 4523] blame robot101 for any issues committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 09 Jan 2003 22:22:12 +0000
parents a79e2de75581
children 059d95c67cda
comparison
equal deleted inserted replaced
4271:a79e2de75581 4272:37fd8ad463ba
114 } 114 }
115 115
116 static int get_localvarfile(bfr) 116 static int get_localvarfile(bfr)
117 char *bfr; 117 char *bfr;
118 { 118 {
119 char *envptr; 119 const char *envptr;
120 struct passwd *pwd; 120 struct passwd *pwd;
121 121
122 envptr = (char*) gaim_home_dir(); 122 envptr = gaim_home_dir();
123 if (envptr) 123 if (envptr)
124 (void) strcpy(bfr, envptr); 124 (void) strcpy(bfr, envptr);
125 else { 125 else {
126 if (!(pwd = getpwuid((int) getuid()))) { 126 if (!(pwd = getpwuid((int) getuid()))) {
127 fprintf(stderr, "Zephyr internal failure: Can't find your entry in /etc/passwd\n"); 127 fprintf(stderr, "Zephyr internal failure: Can't find your entry in /etc/passwd\n");