]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2003-10-22 Paul Jakma <paul@dishone.st>
authorpaul <paul>
Wed, 22 Oct 2003 02:41:52 +0000 (02:41 +0000)
committerpaul <paul>
Wed, 22 Oct 2003 02:41:52 +0000 (02:41 +0000)
        * lib/regex.c: bzero -> memset
        * zebra/ioctl.c: ditto. bzero is not portable.

lib/regex.c
zebra/ioctl.c

index 8c7acd54c85ff69b2ed0fe3aae79e55e32be02a0..2eb7c11814c2d58a559026edc287015353bb0444 100644 (file)
@@ -184,7 +184,7 @@ init_syntax_once ()
    if (done)
      return;
 
-   bzero (re_syntax_table, sizeof re_syntax_table);
+   memset (re_syntax_table, 0, sizeof re_syntax_table);
 
    for (c = 'a'; c <= 'z'; c++)
      re_syntax_table[c] = Sword;
@@ -2194,7 +2194,7 @@ regex_compile (pattern, size, syntax, bufp)
             BUF_PUSH ((1 << BYTEWIDTH) / BYTEWIDTH);
 
             /* Clear the whole map.  */
-            bzero (b, (1 << BYTEWIDTH) / BYTEWIDTH);
+            memset (b, 0, (1 << BYTEWIDTH) / BYTEWIDTH);
 
             /* charset_not matches newline according to a syntax bit.  */
             if ((re_opcode_t) b[-2] == charset_not
@@ -3223,7 +3223,7 @@ re_compile_fastmap (bufp)
   assert (fastmap != NULL && p != NULL);
 
   INIT_FAIL_STACK ();
-  bzero (fastmap, 1 << BYTEWIDTH);  /* Assume nothing's valid.  */
+  memset (fastmap, 0, 1 << BYTEWIDTH);  /* Assume nothing's valid.  */
   bufp->fastmap_accurate = 1;      /* It will be when we're done.  */
   bufp->can_be_null = 0;
 
index 1a682e270e8172796e721faa227cc6368c57e643..ff253be1914875d3fc77ff90c653030480e7859c 100644 (file)
@@ -364,7 +364,7 @@ if_set_flags (struct interface *ifp, unsigned long flags)
   int ret;
   struct ifreq ifreq;
 
-  bzero(&ifreq, sizeof(struct ifreq));
+  memset (&ifreq, 0, sizeof(struct ifreq));
   ifreq_set_name (&ifreq, ifp);
 
   ifreq.ifr_flags = ifp->flags;
@@ -387,7 +387,7 @@ if_unset_flags (struct interface *ifp, unsigned long flags)
   int ret;
   struct ifreq ifreq;
 
-  bzero(&ifreq, sizeof(struct ifreq));
+  memset (&ifreq, 0, sizeof(struct ifreq));
   ifreq_set_name (&ifreq, ifp);
 
   ifreq.ifr_flags = ifp->flags;