]> git.puffer.fish Git - mirror/frr.git/commitdiff
2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Fri, 8 Apr 2005 18:50:40 +0000 (18:50 +0000)
committerajs <ajs>
Fri, 8 Apr 2005 18:50:40 +0000 (18:50 +0000)
* 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.

lib/ChangeLog
lib/vty.c

index 86a3b85614e6b19a5994666e53fd28214ff6ebb3..a6f3ca494aa9ad9397c9b934bd80c31cabdb57c1 100644 (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
index 44439a94d71f36d52f94382d6f6fed1536d40153..600c9fd86cc8208e4d655619718513734f5b7df8 100644 (file)
--- 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++)