From f47f33aabaa2ada8a0c527b82c8ec5e64ec380bf Mon Sep 17 00:00:00 2001 From: vasiljevic Date: Thu, 7 Sep 2006 08:55:40 +0000 Subject: Fixed wrong structure usage in some wrappers FossilOrigin-Name: c82db97da9df3f88d93ce35a19c0fee76a2fa192 --- unix/tclUnixCompat.c | 6 +++--- 1 file 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; -- cgit v0.12