diff options
author | vasiljevic <vasiljevic@noemail.net> | 2006-09-07 08:55:40 (GMT) |
---|---|---|
committer | vasiljevic <vasiljevic@noemail.net> | 2006-09-07 08:55:40 (GMT) |
commit | f47f33aabaa2ada8a0c527b82c8ec5e64ec380bf (patch) | |
tree | 9ac9e03976008591e4eba49f50f984aefee3d16c /unix/tclUnixCompat.c | |
parent | e75503e979c8c267e93ab728fcd97214ee435be1 (diff) | |
download | tcl-f47f33aabaa2ada8a0c527b82c8ec5e64ec380bf.zip tcl-f47f33aabaa2ada8a0c527b82c8ec5e64ec380bf.tar.gz tcl-f47f33aabaa2ada8a0c527b82c8ec5e64ec380bf.tar.bz2 |
Fixed wrong structure usage in some wrappers
FossilOrigin-Name: c82db97da9df3f88d93ce35a19c0fee76a2fa192
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r-- | unix/tclUnixCompat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c index bb29c44..7904c3f 100644 --- a/unix/tclUnixCompat.c +++ b/unix/tclUnixCompat.c @@ -6,7 +6,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixCompat.c,v 1.1.2.2 2006/09/07 08:50:35 vasiljevic Exp $ + * RCS: @(#) $Id: tclUnixCompat.c,v 1.1.2.3 2006/09/07 08:55:40 vasiljevic Exp $ * */ @@ -339,7 +339,7 @@ TclpGetPwNam(const char *name) ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); #if defined(HAVE_GETPWNAM_R_5) - struct group *pwPtr; + struct passwd *pwPtr; return (getpwnam_r(name, &tsdPtr->pwd, tsdPtr->pbuf, sizeof(tsdPtr->pbuf), &pwPtr) == 0) ? &tsdPtr->pwd : NULL; @@ -387,7 +387,7 @@ TclpGetPwUid(uid_t uid) ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); #if defined(HAVE_GETPWUID_R_5) - struct group *pwPtr; + struct passwd *pwPtr; return (getpwuid_r(uid, &tsdPtr->pwd, tsdPtr->pbuf, sizeof(tsdPtr->pbuf), &pwPtr) == 0) ? &tsdPtr->pwd : NULL; |