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 /warp/util.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 'warp/util.c')
-rw-r--r-- | warp/util.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/warp/util.c b/warp/util.c index 2b5a638f..a5071d10 100644 --- a/warp/util.c +++ b/warp/util.c @@ -3,13 +3,13 @@ /* Log: util.c,v * Revision 7.0.1.2 86/10/20 12:07:46 lwall * Made all exits reset tty. - * + * * Revision 7.0.1.1 86/10/16 10:54:02 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:14:31 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" @@ -102,8 +102,8 @@ safecpy(char *to, const char *from, size_t len) { char *dest = to; - if (from != NULL) - for (len--; len && (*dest++ = *from++); len--) + if (from != NULL) + for (len--; len && (*dest++ = *from++); len--) continue; *dest = '\0'; return to; @@ -156,7 +156,7 @@ eaccess(const char *filename, mode_t mod) { mode_t protection; uid_t euid; - + mod &= 7; /* remove extraneous garbage */ if (stat(filename, &filestat) < 0) return -1; |