]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed some gcc 4 warnings in misc.c.
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Thu, 8 Dec 2005 15:36:27 +0000 (15:36 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Thu, 8 Dec 2005 15:36:27 +0000 (15:36 +0000)
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@843 e7ae566f-a301-0410-adde-c780ea21d3b5

misc.c

diff --git a/misc.c b/misc.c
index 41791aeabbdb736a684d18cf8f094bbda3a652c8..349a6081ae8914949689571036ed776b964dd7d1 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -1378,14 +1378,14 @@ make_inline_array (const char *str, struct gc_arena *gc)
   char **ret = NULL;
   int i = 0;
 
-  buf_set_read (&buf, str, strlen (str));
+  buf_set_read (&buf, (const uint8_t *) str, strlen (str));
   while (buf_parse (&buf, '\n', line, sizeof (line)))
     ++len;
 
   /* alloc return array */
   ALLOC_ARRAY_CLEAR_GC (ret, char *, len + 1, gc);
 
-  buf_set_read (&buf, str, strlen(str));
+  buf_set_read (&buf, (const uint8_t *) str, strlen(str));
   while (buf_parse (&buf, '\n', line, sizeof (line)))
     {
       chomp (line);