diff options
author | vasiljevic <zv@archiware.com> | 2006-09-07 08:55:40 (GMT) |
---|---|---|
committer | vasiljevic <zv@archiware.com> | 2006-09-07 08:55:40 (GMT) |
commit | 96e8b03225710ae3df0c32cb8056585a1ff6c1e5 (patch) | |
tree | 9ac9e03976008591e4eba49f50f984aefee3d16c | |
parent | 770ad93a444904b90aa9dfe18641fb5a7a09244e (diff) | |
download | tcl-96e8b03225710ae3df0c32cb8056585a1ff6c1e5.zip tcl-96e8b03225710ae3df0c32cb8056585a1ff6c1e5.tar.gz tcl-96e8b03225710ae3df0c32cb8056585a1ff6c1e5.tar.bz2 |
Fixed wrong structure usage in some wrappers
-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; |