From 15e2355956a8f68c0fb5693a94965a2bfb4fcb37 Mon Sep 17 00:00:00 2001 From: Ray Lai Date: Sat, 7 Apr 2007 00:25:00 +0000 Subject: De-lint. --- usr.bin/sendbug/sendbug.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'usr.bin/sendbug/sendbug.c') 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 . @@ -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; -- cgit v1.2.3