aboutsummaryrefslogtreecommitdiff
path: root/gdb/regex.c
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-09-01 21:56:42 +0000
committerK. Richard Pixley <rich@cygnus>1993-09-01 21:56:42 +0000
commit4ed97c9a835c5d05a900e66b997eb6e77a141950 (patch)
tree3aac1dc65931f319327cf00df82e4fe0efc7b40d /gdb/regex.c
parent9823e3f4c985eb5919103cc84acf2a6055ed724f (diff)
downloadgdb-4ed97c9a835c5d05a900e66b997eb6e77a141950.zip
gdb-4ed97c9a835c5d05a900e66b997eb6e77a141950.tar.gz
gdb-4ed97c9a835c5d05a900e66b997eb6e77a141950.tar.bz2
bzero -> memset
Diffstat (limited to 'gdb/regex.c')
-rw-r--r--gdb/regex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/regex.c b/gdb/regex.c
index 21436d3..75bf4e9 100644
--- a/gdb/regex.c
+++ b/gdb/regex.c
@@ -68,7 +68,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;
@@ -404,7 +404,7 @@ re_compile_pattern (pattern, size, bufp)
PATPUSH ((1 << BYTEWIDTH) / BYTEWIDTH);
/* Clear the whole map */
- bzero (b, (1 << BYTEWIDTH) / BYTEWIDTH);
+ memset (b, '\0', (1 << BYTEWIDTH) / BYTEWIDTH);
/* Read in characters and ranges, setting map bits */
while (1)
{
@@ -705,7 +705,7 @@ re_compile_fastmap (bufp)
unsigned char *stackb[NFAILURES];
unsigned char **stackp = stackb;
- bzero (fastmap, (1 << BYTEWIDTH));
+ memset (fastmap, '\0', (1 << BYTEWIDTH));
bufp->fastmap_accurate = 1;
bufp->can_be_null = 0;