X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/2f593094f0c4f828fd81a3b052ee426135135694..29a87ab833bc1b9214ec69d8c84421d5529038b7:/morse/morse.c diff --git a/morse/morse.c b/morse/morse.c index 2e2a2c01..f97de689 100644 --- a/morse/morse.c +++ b/morse/morse.c @@ -1,4 +1,4 @@ -/* $NetBSD: morse.c,v 1.8 1999/09/12 09:02:22 jsm Exp $ */ +/* $NetBSD: morse.c,v 1.10 2000/07/03 03:57:42 matt Exp $ */ /* * Copyright (c) 1988, 1993 @@ -43,12 +43,13 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\ #if 0 static char sccsid[] = "@(#)morse.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: morse.c,v 1.8 1999/09/12 09:02:22 jsm Exp $"); +__RCSID("$NetBSD: morse.c,v 1.10 2000/07/03 03:57:42 matt Exp $"); #endif #endif /* not lint */ #include #include +#include #include #include @@ -115,7 +116,7 @@ main(argc, argv) char *s, *p; /* Revoke setgid privileges */ - setregid(getgid(), getgid()); + setgid(getgid()); while ((ch = getopt(argc, argv, "ds")) != -1) switch((char)ch) {