summaryrefslogtreecommitdiff
path: root/src/Text.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2011-08-02 00:31:45 -0400
committerMatt Turner <mattst88@gmail.com>2011-08-02 00:31:45 -0400
commitfcc02b00aeed32e3b87c41f138799a68072a53ee (patch)
treead5da6c07133c781a1e3ffbe394b2771deb0b536 /src/Text.c
parent9edc780fc72c1dac9a1d9385cc74abf487a5d1bd (diff)
Replace bzero() with memset().
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/Text.c')
-rw-r--r--src/Text.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Text.c b/src/Text.c
index 9b65081..e05ef5d 100644
--- a/src/Text.c
+++ b/src/Text.c
@@ -534,8 +534,8 @@ Cardinal *num_args; /* unused */
ctx->text.lt.lines = 0;
ctx->text.lt.info = NULL;
- (void) bzero((char *) &(ctx->text.origSel), sizeof(XawTextSelection));
- (void) bzero((char *) &(ctx->text.s), sizeof(XawTextSelection));
+ memset(&(ctx->text.origSel), 0, sizeof(XawTextSelection));
+ memset(&(ctx->text.s), 0, sizeof(XawTextSelection));
ctx->text.s.type = XawselectPosition;
ctx->text.salt = NULL;
ctx->text.hbar = ctx->text.vbar = (Widget) NULL;
@@ -967,7 +967,7 @@ _XawTextBuildLineTable (ctx, position, force_rebuild)
}
if ( force_rebuild || (position != ctx->text.lt.top) ) {
- (void) bzero((char *) ctx->text.lt.info, size);
+ memset(ctx->text.lt.info, 0, size);
(void) _BuildLineTable(ctx, ctx->text.lt.top = position, zeroPosition, 0);
}
}
@@ -1047,7 +1047,7 @@ int line;
}
if (line < ctx->text.lt.lines) /* Clear out rest of table. */
- (void) bzero( (char *) (lt + 1),
+ memset((lt + 1), 0,
(ctx->text.lt.lines - line) * sizeof(XawTextLineTableEntry) );
ctx->text.lt.info[ctx->text.lt.lines].position = lt->position;