diff options
author | Sean Farley <scf@FreeBSD.org> | 2008-06-08 19:35:47 +0000 |
---|---|---|
committer | Sean Farley <scf@FreeBSD.org> | 2008-06-08 19:35:47 +0000 |
commit | 35ed5c4e483ce765696824cbf02c6a67c4e72d07 (patch) | |
tree | 9c61971912e9c351c721f5a5fe2032af78785297 /games | |
parent | 5a9555b9aaddd132939694e3c7e6e0b09437b28f (diff) |
Notes
Diffstat (limited to 'games')
-rw-r--r-- | games/morse/morse.6 | 5 | ||||
-rw-r--r-- | games/morse/morse.c | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/games/morse/morse.6 b/games/morse/morse.6 index f9ac378dc2d96..f26d9dba4218f 100644 --- a/games/morse/morse.6 +++ b/games/morse/morse.6 @@ -172,7 +172,8 @@ Interpret characters with the high-order bit set as Greek characters. .Sh FILES .Bl -tag -width ".Pa /dev/speaker" -compact .It Pa /dev/speaker -speaker device file +.Xr speaker 4 +device file .El .Sh SEE ALSO .Xr speaker 4 @@ -180,7 +181,7 @@ speaker device file Sound support for .Nm added by -.An Lyndon Nerenberg (VE7TCP/VE6BBM) Aq lyndon@orthanc.com . +.An Lyndon Nerenberg (VE6BBM) Aq lyndon@orthanc.ca . .Pp Ability to key an external device added by .An J\(:org Wunsch diff --git a/games/morse/morse.c b/games/morse/morse.c index 87f97dccd5de3..7663402c5c99b 100644 --- a/games/morse/morse.c +++ b/games/morse/morse.c @@ -32,8 +32,8 @@ */ /* - * Taught to send *real* morse by Lyndon Nerenberg (VE7TCP/VE6BBM) - * <lyndon@orthanc.com> + * Taught to send *real* morse by Lyndon Nerenberg (VE6BBM) + * <lyndon@orthanc.ca> */ #ifndef lint @@ -483,7 +483,8 @@ show(const char *s) printf(" %s\n", s); } else { for (; *s; ++s) - printf(" %s", *s == '.' ? "dit" : "dah"); + printf(" %s", *s == '.' ? *(s + 1) == '\0' ? "dit" : + "di" : "dah"); printf("\n"); } } |