diff options
author | 2007-04-07 00:24:59 +0000 | |
---|---|---|
committer | 2007-04-07 00:24:59 +0000 | |
commit | e9d79a513b865cf53c108b9dc2d27489b6b68efd (patch) | |
tree | 4dd70177c6fd4acf599839694581239ff73c32f3 /usr.bin/sendbug/sendbug.c | |
parent | Add support for PCIe. Don't map interrupts that are already mapped correctly. (diff) | |
download | wireguard-openbsd-e9d79a513b865cf53c108b9dc2d27489b6b68efd.tar.xz wireguard-openbsd-e9d79a513b865cf53c108b9dc2d27489b6b68efd.zip |
De-lint.
Diffstat (limited to 'usr.bin/sendbug/sendbug.c')
-rw-r--r-- | usr.bin/sendbug/sendbug.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c index beccf6f5d9d..6e2fb67110e 100644 --- a/usr.bin/sendbug/sendbug.c +++ b/usr.bin/sendbug/sendbug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sendbug.c,v 1.39 2007/04/06 21:51:09 ray Exp $ */ +/* $OpenBSD: sendbug.c,v 1.40 2007/04/07 00:24:59 ray Exp $ */ /* * Written by Ray Lai <ray@cyth.net>. @@ -33,7 +33,7 @@ int checkfile(const char *); void dmesg(FILE *); int editit(char *); void init(void); -int matchline(const char *, const unsigned char *, size_t); +int matchline(const char *, const char *, size_t); int prompt(void); int send_file(const char *, int); int sendmail(const char *); @@ -468,9 +468,10 @@ send_file(const char *file, int dst) /* * Does line start with `s' and end with non-comment and non-whitespace? + * Note: Does not treat `line' as a C string. */ int -matchline(const char *s, const unsigned char *line, size_t linelen) +matchline(const char *s, const char *line, size_t linelen) { size_t slen; int comment; @@ -492,7 +493,7 @@ matchline(const char *s, const unsigned char *line, size_t linelen) comment = 0; } else if (*line == '<') comment = 1; - else if (!isspace(*line)) + else if (!isspace((unsigned char)*line)) return (1); ++line; --linelen; |