Remove unneded cast in login_getclassbyname which cause warning

This commit is contained in:
Andrey A. Chernov 1997-07-02 13:53:31 +00:00
parent 4c290c2ae1
commit a2ee73bcc6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27176

View File

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: init.c,v 1.17 1997/06/13 06:24:42 charnier Exp $
* $Id: init.c,v 1.18 1997/06/28 08:18:29 pst Exp $
*/
#ifndef lint
@ -1471,7 +1471,7 @@ setprocresources(cname)
const char *cname;
{
login_cap_t *lc;
if ((lc = login_getclassbyname(cname, (char*)NULL)) != NULL) {
if ((lc = login_getclassbyname(cname, NULL)) != NULL) {
setusercontext(lc, (struct passwd*)NULL, 0, LOGIN_SETPRIORITY|LOGIN_SETRESOURCES);
login_close(lc);
}