From 1cf383847d8aa28b5a6877ca0403e61d5d0edf36 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sat, 8 Sep 2007 10:49:00 +0000 Subject: [PATCH] Remove previous hack to cope with CVS IDs. It wasn't properly documented and also prevented quiz questions starting with # from being asked. Not very likely but we shouldn't break program semantics because of administrative reasons. The datfiles have now been added to the exclusion list. --- games/quiz/datfiles/europe | 1 - games/quiz/quiz.c | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/games/quiz/datfiles/europe b/games/quiz/datfiles/europe index f0dc1a68d1..aad3869f5f 100644 --- a/games/quiz/datfiles/europe +++ b/games/quiz/datfiles/europe @@ -1,4 +1,3 @@ -# $DragonFly: src/games/quiz/datfiles/europe,v 1.2 2007/09/08 01:29:40 corecode Exp $ Albania:Tirana|Tirane" Andorra:Andorra la V[ell|iej]a Austria:Vienna|Wien diff --git a/games/quiz/quiz.c b/games/quiz/quiz.c index 3b52b874e2..81d2749e06 100644 --- a/games/quiz/quiz.c +++ b/games/quiz/quiz.c @@ -37,7 +37,7 @@ * @(#) Copyright (c) 1991, 1993 The Regents of the University of California. All rights reserved. * @(#)quiz.c 8.3 (Berkeley) 5/4/95 * $FreeBSD: src/games/quiz/quiz.c,v 1.12 1999/12/12 02:29:54 billf Exp $ - * $DragonFly: src/games/quiz/quiz.c,v 1.6 2007/09/08 01:29:14 corecode Exp $ + * $DragonFly: src/games/quiz/quiz.c,v 1.7 2007/09/08 10:49:00 swildner Exp $ */ #include @@ -128,8 +128,6 @@ get_file(const char *file) qp = &qlist; qsize = 0; while ((lp = fgetln(fp, &len)) != NULL) { - if (lp[0] == '#') - continue; if (qp->q_text && qp->q_text[strlen(qp->q_text) - 1] == '\\') qp->q_text = appdstr(qp->q_text, lp, len); else { -- 2.41.0