diff options
author | rillig <rillig@NetBSD.org> | 2021-05-02 12:50:43 +0000 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-05-05 14:56:21 -0400 |
commit | 1c75ca2e2dc72d118edbb854455e602d70d80a52 (patch) | |
tree | a815eb983fa15e7c407095122e37acb90093be9a /battlestar/getcom.c | |
parent | 2442661e769456700d67fac92056d18b3046633e (diff) | |
download | bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.gz bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.zst bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.zip |
games: remove trailing whitespace in *.c and *.h
Diffstat (limited to 'battlestar/getcom.c')
-rw-r--r-- | battlestar/getcom.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 { |