summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixCompat.c
diff options
context:
space:
mode:
authorvasiljevic <zv@archiware.com>2006-09-07 08:55:40 (GMT)
committervasiljevic <zv@archiware.com>2006-09-07 08:55:40 (GMT)
commitf03502ae085efe1bf6e5ee93276366b1f94115d0 (patch)
tree9ac9e03976008591e4eba49f50f984aefee3d16c /unix/tclUnixCompat.c
parent6bf316cc8d180ece75a2b6b0af4594401fde93de (diff)
downloadtcl-f03502ae085efe1bf6e5ee93276366b1f94115d0.zip
tcl-f03502ae085efe1bf6e5ee93276366b1f94115d0.tar.gz
tcl-f03502ae085efe1bf6e5ee93276366b1f94115d0.tar.bz2
Fixed wrong structure usage in some wrappers
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r--unix/tclUnixCompat.c6
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;