summaryrefslogtreecommitdiffstats
path: root/hack
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2021-05-02 12:50:43 +0000
committerCameron Katri <me@cameronkatri.com>2021-05-05 14:56:21 -0400
commit1c75ca2e2dc72d118edbb854455e602d70d80a52 (patch)
treea815eb983fa15e7c407095122e37acb90093be9a /hack
parent2442661e769456700d67fac92056d18b3046633e (diff)
downloadbsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.gz
bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.zst
bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.zip
games: remove trailing whitespace in *.c and *.h
Diffstat (limited to 'hack')
-rw-r--r--hack/extern.h4
-rw-r--r--hack/hack-config.h4
-rw-r--r--hack/hack.c6
-rw-r--r--hack/hack.terminfo.c10
-rw-r--r--hack/hack.zap.c6
5 files changed, 15 insertions, 15 deletions
diff --git a/hack/extern.h b/hack/extern.h
index b28badb7..1c005e25 100644
--- a/hack/extern.h
+++ b/hack/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.18 2011/08/27 23:42:33 joerg Exp $ */
+/* $NetBSD: extern.h,v 1.19 2021/05/02 12:50:44 rillig Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -178,7 +178,7 @@ struct trap *t_at(int, int);
struct gold *g_at(int, int);
struct obj *getobj(const char *, const char *);
int ggetobj(const char *, int (*fn)(struct obj *), int);
-int askchain(struct obj *, char *, int, int (*)(struct obj *),
+int askchain(struct obj *, char *, int, int (*)(struct obj *),
int (*)(struct obj *), int);
void prinv(struct obj *);
int ddoinv(void);
diff --git a/hack/hack-config.h b/hack/hack-config.h
index 7f51a842..3ceaaafa 100644
--- a/hack/hack-config.h
+++ b/hack/hack-config.h
@@ -1,4 +1,4 @@
-/* $NetBSD: config.h,v 1.10 2011/08/06 19:53:24 dholland Exp $ */
+/* $NetBSD: config.h,v 1.11 2021/05/02 12:50:44 rillig Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -113,7 +113,7 @@
*/
/* #define MAIL */
#define DEF_MAILREADER _PATH_MAIL /* or e.g. /bin/mail */
-#define MAILCKFREQ 100
+#define MAILCKFREQ 100
#define SHELL /* do not delete the '!' command */
diff --git a/hack/hack.c b/hack/hack.c
index 25a429c2..16c195e2 100644
--- a/hack/hack.c
+++ b/hack/hack.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.c,v 1.11 2011/08/07 06:03:45 dholland Exp $ */
+/* $NetBSD: hack.c,v 1.12 2021/05/02 12:50:44 rillig Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.c,v 1.11 2011/08/07 06:03:45 dholland Exp $");
+__RCSID("$NetBSD: hack.c,v 1.12 2021/05/02 12:50:44 rillig Exp $");
#endif /* not lint */
#include "hack.h"
@@ -877,7 +877,7 @@ dbon(void)
/* may kill you; cause may be poison or */
/* monster like 'A' */
void
-losestr(int num)
+losestr(int num)
{
u.ustr -= num;
while (u.ustr < 3) {
diff --git a/hack/hack.terminfo.c b/hack/hack.terminfo.c
index a7ea30b9..20e10949 100644
--- a/hack/hack.terminfo.c
+++ b/hack/hack.terminfo.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.terminfo.c,v 1.2 2011/10/03 12:32:28 roy Exp $ */
+/* $NetBSD: hack.terminfo.c,v 1.3 2021/05/02 12:50:44 rillig Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.terminfo.c,v 1.2 2011/10/03 12:32:28 roy Exp $");
+__RCSID("$NetBSD: hack.terminfo.c,v 1.3 2021/05/02 12:50:44 rillig Exp $");
#endif /* not lint */
#include <string.h>
@@ -124,7 +124,7 @@ xputs(const char *s)
static void
cmov(int x, int y)
{
- char *p;
+ char *p;
p = tiparm(cursor_address, y - 1, x - 1);
if (p) {
@@ -243,7 +243,7 @@ void
home(void)
{
char *out;
-
+
if (cursor_home)
xputs(cursor_home);
else if ((cursor_address) && (out = tiparm(cursor_address, 0, 0)))
@@ -287,7 +287,7 @@ sound_bell(void)
void
delay_output(void)
{
-
+
/* delay 50 ms - could also use a 'nap'-system call */
/* or the usleep call like this :-) */
usleep(50000);
diff --git a/hack/hack.zap.c b/hack/hack.zap.c
index ebef14cc..c90ef782 100644
--- a/hack/hack.zap.c
+++ b/hack/hack.zap.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.zap.c,v 1.9 2009/08/12 07:28:41 dholland Exp $ */
+/* $NetBSD: hack.zap.c,v 1.10 2021/05/02 12:50:44 rillig Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.zap.c,v 1.9 2009/08/12 07:28:41 dholland Exp $");
+__RCSID("$NetBSD: hack.zap.c,v 1.10 2021/05/02 12:50:44 rillig Exp $");
#endif /* not lint */
#include "hack.h"
@@ -723,7 +723,7 @@ rloco(struct obj *obj)
/* fractured by pick-axe or wand of striking */
/* no texts here! */
void
-fracture_rock(struct obj *obj)
+fracture_rock(struct obj *obj)
{
/* unpobj(obj); */
obj->otyp = ROCK;