diff options
author | billf <billf@FreeBSD.org> | 2002-02-23 10:44:04 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 2002-02-23 10:44:04 +0000 |
commit | cb7151318ebc080fcd1fd2c9049283fc99d2087a (patch) | |
tree | 90f14cd5bbae0092b074d3d1ef5de4ebf3c30981 /games/piano | |
parent | e5774765bdef52e2e3f84df851d75ba572554ac7 (diff) | |
download | FreeBSD-src-cb7151318ebc080fcd1fd2c9049283fc99d2087a.zip FreeBSD-src-cb7151318ebc080fcd1fd2c9049283fc99d2087a.tar.gz |
BDECFLAGS
Reviewed by: md5(1)
Diffstat (limited to 'games/piano')
-rw-r--r-- | games/piano/piano.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/games/piano/piano.c b/games/piano/piano.c index 484247a..5eca743 100644 --- a/games/piano/piano.c +++ b/games/piano/piano.c @@ -13,7 +13,7 @@ static const char rcsid[] = char *myname; int verbose; -static char *initcmd = "t160 o1 l16 ml"; +static const char *initcmd = "t160 o1 l16 ml"; static const char usage_msg[] = "simple keyboard player V0.8086\n" @@ -27,10 +27,10 @@ static const char usage_msg[] = struct kdef_t { int ch; - char *str; + const char *str; }; -static char *kstr[256]; +static const char *kstr[256]; static struct kdef_t kdef[] = { /* white key */ @@ -80,12 +80,14 @@ init_kstr(void) }/* init_kstr */ static int -fdputs(const char *s, int fd, int echo) +fdputs(const char *s, int fd, int p_echo) { - int err, len = strlen(s); + int err; + size_t len; + len = strlen(s); write(fd, s, len); err = write(fd, "\n", 1); - if (echo) { + if (p_echo) { fputs(s, stdout); } return err; |