comparison src/protocols/zephyr/ZVariables.c @ 4271:a79e2de75581

[gaim-migrate @ 4522] Benjamin Tegarden (tegarden) writes: "Recasts a pointer to shut gcc up." committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 09 Jan 2003 21:54:25 +0000
parents cba92ec56248
children 37fd8ad463ba
comparison
equal deleted inserted replaced
4270:cc79431a11a7 4271:a79e2de75581
3 * functions. 3 * functions.
4 * 4 *
5 * Created by: Robert French 5 * Created by: Robert French
6 * 6 *
7 * $Source$ 7 * $Source$
8 * $Author: thekingant $ 8 * $Author: lschiere $
9 * 9 *
10 * Copyright (c) 1987 by the Massachusetts Institute of Technology. 10 * Copyright (c) 1987 by the Massachusetts Institute of Technology.
11 * For copying and distribution information, see the file 11 * For copying and distribution information, see the file
12 * "mit-copyright.h". 12 * "mit-copyright.h".
13 */ 13 */
117 char *bfr; 117 char *bfr;
118 { 118 {
119 char *envptr; 119 char *envptr;
120 struct passwd *pwd; 120 struct passwd *pwd;
121 121
122 envptr = gaim_home_dir(); 122 envptr = (char*) 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");