diff options
author | 2015-03-12 02:19:10 +0000 | |
---|---|---|
committer | 2015-03-12 02:19:10 +0000 | |
commit | fb604f45231b39a797693bd705a1f6f71abdbc7d (patch) | |
tree | 4b758024b8529151486ea2f4befb012aac64382a | |
parent | Fix typo: nemb -> nmemb (diff) | |
download | wireguard-openbsd-fb604f45231b39a797693bd705a1f6f71abdbc7d.tar.xz wireguard-openbsd-fb604f45231b39a797693bd705a1f6f71abdbc7d.zip |
Delete cribbage logging. Was never enabled and no point in enabling it.
ok tedu@
-rw-r--r-- | games/cribbage/Makefile | 3 | ||||
-rw-r--r-- | games/cribbage/crib.c | 24 | ||||
-rw-r--r-- | games/cribbage/cribbage.6 | 7 | ||||
-rw-r--r-- | games/cribbage/pathnames.h | 5 |
4 files changed, 5 insertions, 34 deletions
diff --git a/games/cribbage/Makefile b/games/cribbage/Makefile index ad5dd2872fc..d9867f5c885 100644 --- a/games/cribbage/Makefile +++ b/games/cribbage/Makefile @@ -1,11 +1,10 @@ -# $OpenBSD: Makefile,v 1.8 2002/05/31 03:46:35 pjanzen Exp $ +# $OpenBSD: Makefile,v 1.9 2015/03/12 02:19:10 bentley Exp $ PROG= cribbage DPADD= ${LIBCURSES} LDADD= -lcurses SRCS= extern.c crib.c cards.c instr.c io.c score.c support.c MAN= cribbage.6 -BINMODE=2555 beforeinstall: ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ diff --git a/games/cribbage/crib.c b/games/cribbage/crib.c index 7503fabf33f..377a9cf378f 100644 --- a/games/cribbage/crib.c +++ b/games/cribbage/crib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crib.c,v 1.17 2013/10/25 18:31:29 millert Exp $ */ +/* $OpenBSD: crib.c,v 1.18 2015/03/12 02:19:10 bentley Exp $ */ /* $NetBSD: crib.c,v 1.7 1997/07/10 06:47:29 mikel Exp $ */ /*- @@ -48,15 +48,6 @@ main(int argc, char *argv[]) { bool playing; int ch; -#ifdef LOGGING - FILE *f; - gid_t egid; - - egid = getegid(); - setegid(getgid()); -#else - setgid(getgid()); -#endif while ((ch = getopt(argc, argv, "emqr")) != -1) switch (ch) { @@ -121,20 +112,7 @@ main(int argc, char *argv[]) playing = (getuchar() == 'Y'); } while (playing); -#ifdef LOGGING - setegid(egid); - if ((f = fopen(_PATH_LOG, "a")) != NULL) { - (void)fprintf(f, "%s: won %5.5d, lost %5.5d\n", - getlogin(), cgames, pgames); - (void) fclose(f); - } - setegid(getgid()); - bye(); - if (!f) - errx(1, "can't open %s", _PATH_LOG); -#else bye(); -#endif exit(0); } diff --git a/games/cribbage/cribbage.6 b/games/cribbage/cribbage.6 index 57ba1f82ddb..51d2fb7ccd8 100644 --- a/games/cribbage/cribbage.6 +++ b/games/cribbage/cribbage.6 @@ -1,4 +1,4 @@ -.\" $OpenBSD: cribbage.6,v 1.14 2015/02/18 02:16:59 bentley Exp $ +.\" $OpenBSD: cribbage.6,v 1.15 2015/03/12 02:19:10 bentley Exp $ .\" .\" Copyright (c) 1980, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)cribbage.6 8.1 (Berkeley) 5/31/93 .\" -.Dd $Mdocdate: February 18 2015 $ +.Dd $Mdocdate: March 12 2015 $ .Dt CRIBBAGE 6 .Os .Sh NAME @@ -195,9 +195,6 @@ the following could be typed: .Sq king of diamonds . .Sh FILES .Bl -tag -width /usr/share/games/cribbage.instr -compact -.It Pa /var/games/criblog -log file -.Pq if logging is enabled .It Pa /usr/share/games/cribbage.instr instructions .El diff --git a/games/cribbage/pathnames.h b/games/cribbage/pathnames.h index e440aacf6f1..ada14724e78 100644 --- a/games/cribbage/pathnames.h +++ b/games/cribbage/pathnames.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pathnames.h,v 1.4 2003/06/03 03:01:39 millert Exp $ */ +/* $OpenBSD: pathnames.h,v 1.5 2015/03/12 02:19:10 bentley Exp $ */ /* $NetBSD: pathnames.h,v 1.3 1995/03/21 15:08:56 cgd Exp $ */ /*- @@ -33,7 +33,4 @@ */ #define _PATH_INSTR "/usr/share/games/cribbage.instr" -#ifdef LOGGING -#define _PATH_LOG "/var/games/criblog" -#endif #define _PATH_MORE "/usr/bin/more" |