diff options
author | wiz <wiz> | 2006-03-01 22:46:50 +0000 |
---|---|---|
committer | wiz <wiz> | 2006-03-01 22:46:50 +0000 |
commit | 8bc85924e89243d8f65a1d1a2695e53d65955c85 (patch) | |
tree | b8ec8d7394d80c95c1d66bf5f0a94e3f8d6162c3 /sysutils/lambd | |
parent | 024413cf86e2ea5b218b203397bd7be5be1fdd60 (diff) | |
download | pkgsrc-8bc85924e89243d8f65a1d1a2695e53d65955c85.tar.gz |
Fix build on -current.
Diffstat (limited to 'sysutils/lambd')
-rw-r--r-- | sysutils/lambd/files/lambd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sysutils/lambd/files/lambd.c b/sysutils/lambd/files/lambd.c index 6ebd756469b..450b3a5ea7d 100644 --- a/sysutils/lambd/files/lambd.c +++ b/sysutils/lambd/files/lambd.c @@ -1,4 +1,4 @@ -/* $NetBSD: lambd.c,v 1.4 2001/07/19 20:29:08 itojun Exp $ */ +/* $NetBSD: lambd.c,v 1.5 2006/03/01 22:46:50 wiz Exp $ */ /* * Copyright (C) 2001 WIDE Project. All rights reserved. @@ -286,7 +286,7 @@ static const char *const alph[] = { int morse() { - const char *p, *q; + unsigned const char *p, *q; int mark, blank; unsigned long t = delay / 10; @@ -300,6 +300,8 @@ morse() q = alph[*p - 'A']; else if (isalpha(*p) && islower(*p)) q = alph[*p - 'a']; + else + q = NULL; if (debug) printf("%c <%s>\n", *p, q); |