From 1c75ca2e2dc72d118edbb854455e602d70d80a52 Mon Sep 17 00:00:00 2001 From: rillig Date: Sun, 2 May 2021 12:50:43 +0000 Subject: games: remove trailing whitespace in *.c and *.h --- battlestar/getcom.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'battlestar/getcom.c') diff --git a/battlestar/getcom.c b/battlestar/getcom.c index 7e13b5f9..15b8e832 100644 --- a/battlestar/getcom.c +++ b/battlestar/getcom.c @@ -1,4 +1,4 @@ -/* $NetBSD: getcom.c,v 1.14 2012/01/16 17:38:16 christos Exp $ */ +/* $NetBSD: getcom.c,v 1.15 2021/05/02 12:50:43 rillig Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)getcom.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: getcom.c,v 1.14 2012/01/16 17:38:16 christos Exp $"); +__RCSID("$NetBSD: getcom.c,v 1.15 2021/05/02 12:50:43 rillig Exp $"); #endif #endif /* not lint */ @@ -85,11 +85,11 @@ getword(char *buf1, char *buf2, int flag) *buf2 = 0; return (0); } - while (cnt < WORDLEN && *buf1 && + while (cnt < WORDLEN && *buf1 && !isspace((unsigned char)*buf1) && *buf1 != ',') if (flag < 0) { if (isupper((unsigned char)*buf1)) { - *buf2++ = + *buf2++ = tolower((unsigned char)*buf1++); cnt++; } else { @@ -98,7 +98,7 @@ getword(char *buf1, char *buf2, int flag) } } else if (flag > 0) { if (islower((unsigned char)*buf1)) { - *buf2++ = + *buf2++ = toupper((unsigned char)*buf1++); cnt++; } else { -- cgit v1.2.3-56-ge451