summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2011-05-14 11:06:33 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2011-05-14 11:06:33 +0000
commitecddd3b8b3cb200b31a483621f6c724a29063f8e (patch)
treec54ef9d619c5c29f62f6b18ce8ba5f8b9865b23b
parent9369099c49caf207f40f90aa78c59de53fe5fc6a (diff)
char -> u_char
-rw-r--r--usr.sbin/smtpd/client.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/client.c b/usr.sbin/smtpd/client.c
index 9f8d985c9bd..a1fd25a2a18 100644
--- a/usr.sbin/smtpd/client.c
+++ b/usr.sbin/smtpd/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.35 2011/03/26 10:59:59 gilles Exp $ */
+/* $OpenBSD: client.c,v 1.36 2011/05/14 11:06:32 gilles Exp $ */
/*
* Copyright (c) 2009 Jacek Masiulaniec <jacekm@dobremiasto.net>
@@ -884,7 +884,8 @@ client_socket_write(struct smtp_client *sp)
char *
buf_getln(struct ibuf_read *r)
{
- char *buf = r->buf, *line;
+ char *line;
+ u_char *buf = r->buf;
size_t bufsz = r->wpos, i;
/* look for terminating newline */
@@ -916,7 +917,7 @@ buf_getln(struct ibuf_read *r)
int
buf_read(int fd, struct ibuf_read *r)
{
- char *buf = r->buf + r->wpos;
+ u_char *buf = r->buf + r->wpos;
size_t bufsz = sizeof(r->buf) - r->wpos;
ssize_t n;