-/* $NetBSD: bcd.c,v 1.9 1999/07/28 02:12:33 hubertf Exp $ */
+/* $NetBSD: bcd.c,v 1.11 2000/07/03 03:57:40 matt Exp $ */
/*
* Copyright (c) 1989, 1993
#if 0
static char sccsid[] = "@(#)bcd.c 8.2 (Berkeley) 3/20/94";
#else
-__RCSID("$NetBSD: bcd.c,v 1.9 1999/07/28 02:12:33 hubertf Exp $");
+__RCSID("$NetBSD: bcd.c,v 1.11 2000/07/03 03:57:40 matt Exp $");
#endif
#endif /* not lint */
#include <sys/types.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
char cardline[80];
/* revoke setgid privileges */
- setregid(getgid(), getgid());
+ setgid(getgid());
/*
* The original bcd prompts with a "%" when reading from stdin,