2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* 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.
This commit is contained in:
ajs 2005-04-08 18:50:40 +00:00
parent d66a7b5663
commit 926fe8f1fc
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* 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 <ajschorr@alumni.princeton.edu>
* zebra.h: If GNU_LINUX is defined, then define _GNU_SOURCE. This

View File

@ -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++)