mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 12:37:10 +00:00
2003-10-22 Paul Jakma <paul@dishone.st>
* lib/regex.c: bzero -> memset * zebra/ioctl.c: ditto. bzero is not portable.
This commit is contained in:
parent
dc7a2bf1c8
commit
d1724b6555
@ -184,7 +184,7 @@ init_syntax_once ()
|
|||||||
if (done)
|
if (done)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bzero (re_syntax_table, sizeof re_syntax_table);
|
memset (re_syntax_table, 0, sizeof re_syntax_table);
|
||||||
|
|
||||||
for (c = 'a'; c <= 'z'; c++)
|
for (c = 'a'; c <= 'z'; c++)
|
||||||
re_syntax_table[c] = Sword;
|
re_syntax_table[c] = Sword;
|
||||||
@ -2194,7 +2194,7 @@ regex_compile (pattern, size, syntax, bufp)
|
|||||||
BUF_PUSH ((1 << BYTEWIDTH) / BYTEWIDTH);
|
BUF_PUSH ((1 << BYTEWIDTH) / BYTEWIDTH);
|
||||||
|
|
||||||
/* Clear the whole map. */
|
/* Clear the whole map. */
|
||||||
bzero (b, (1 << BYTEWIDTH) / BYTEWIDTH);
|
memset (b, 0, (1 << BYTEWIDTH) / BYTEWIDTH);
|
||||||
|
|
||||||
/* charset_not matches newline according to a syntax bit. */
|
/* charset_not matches newline according to a syntax bit. */
|
||||||
if ((re_opcode_t) b[-2] == charset_not
|
if ((re_opcode_t) b[-2] == charset_not
|
||||||
@ -3223,7 +3223,7 @@ re_compile_fastmap (bufp)
|
|||||||
assert (fastmap != NULL && p != NULL);
|
assert (fastmap != NULL && p != NULL);
|
||||||
|
|
||||||
INIT_FAIL_STACK ();
|
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->fastmap_accurate = 1; /* It will be when we're done. */
|
||||||
bufp->can_be_null = 0;
|
bufp->can_be_null = 0;
|
||||||
|
|
||||||
|
@ -364,7 +364,7 @@ if_set_flags (struct interface *ifp, unsigned long flags)
|
|||||||
int ret;
|
int ret;
|
||||||
struct ifreq ifreq;
|
struct ifreq ifreq;
|
||||||
|
|
||||||
bzero(&ifreq, sizeof(struct ifreq));
|
memset (&ifreq, 0, sizeof(struct ifreq));
|
||||||
ifreq_set_name (&ifreq, ifp);
|
ifreq_set_name (&ifreq, ifp);
|
||||||
|
|
||||||
ifreq.ifr_flags = ifp->flags;
|
ifreq.ifr_flags = ifp->flags;
|
||||||
@ -387,7 +387,7 @@ if_unset_flags (struct interface *ifp, unsigned long flags)
|
|||||||
int ret;
|
int ret;
|
||||||
struct ifreq ifreq;
|
struct ifreq ifreq;
|
||||||
|
|
||||||
bzero(&ifreq, sizeof(struct ifreq));
|
memset (&ifreq, 0, sizeof(struct ifreq));
|
||||||
ifreq_set_name (&ifreq, ifp);
|
ifreq_set_name (&ifreq, ifp);
|
||||||
|
|
||||||
ifreq.ifr_flags = ifp->flags;
|
ifreq.ifr_flags = ifp->flags;
|
||||||
|
Loading…
Reference in New Issue
Block a user