--- libaitcfg/src/pq.c 2012/09/19 11:47:39 1.1.2.2 +++ libaitcfg/src/pq.c 2012/09/19 12:04:44 1.1.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: pq.c,v 1.1.2.2 2012/09/19 11:47:39 misho Exp $ +* $Id: pq.c,v 1.1.2.3 2012/09/19 12:04:44 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -61,7 +61,7 @@ _selectPasswd(pwd_root_t * __restrict pwd, u_int uid, return RB_FIND(tagPWD, pwd, &fu); } - return cfg_findPasswdBy(pwd, PWD_CRIT_UID, uid); + return (struct tagUser*) cfg_findPasswdBy(pwd, PWD_CRIT_UID, uid); } /* --------------------------------------------------------------- */ @@ -74,7 +74,7 @@ _selectPasswd(pwd_root_t * __restrict pwd, u_int uid, * @arg1 = Username | UID | GID * return: NULL not found item or error and !=NULL found item */ -struct tagUser * +const struct tagUser * cfg_findPasswdBy(pwd_root_t * __restrict pwd, int criteria, ...) { struct tagUser *u;