From: ajs Date: Fri, 8 Apr 2005 18:50:40 +0000 (+0000) Subject: 2005-04-08 Andrew J. Schorr X-Git-Tag: frr-2.0-rc1~3093 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=926fe8f1fce88d0889e47a9f5c6d78c6bc11f3f6;p=mirror%2Ffrr.git 2005-04-08 Andrew J. Schorr * vty.c: (vty_log_fixed) Use casts to (void *) to try to eliminate compiler warnings when assigning a (const char *) value to struct iovec iov_base. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 86a3b85614..a6f3ca494a 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2005-04-08 Andrew J. Schorr + + * vty.c: (vty_log_fixed) Use casts to (void *) to try to eliminate + compiler warnings when assigning a (const char *) value to + struct iovec iov_base. + 2005-04-08 Andrew J. Schorr * zebra.h: If GNU_LINUX is defined, then define _GNU_SOURCE. This diff --git a/lib/vty.c b/lib/vty.c index 44439a94d7..600c9fd86c 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -2395,9 +2395,9 @@ vty_log_fixed (const char *buf, size_t len) unsigned int i; struct iovec iov[2]; - iov[0].iov_base = buf; + iov[0].iov_base = (void *)buf; iov[0].iov_len = len; - iov[1].iov_base = "\r\n"; + iov[1].iov_base = (void *)"\r\n"; iov[1].iov_len = 2; for (i = 0; i < vector_active (vtyvec); i++)