From 2e09a79ada1f6d92809a037d41895e3d9302ad59 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 7 Jun 2013 22:24:35 +0000 Subject: Avoid use of "register" as optimization hint. --- stdio-common/xbug.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'stdio-common/xbug.c') diff --git a/stdio-common/xbug.c b/stdio-common/xbug.c index 76a8c54726..64ba314cbe 100644 --- a/stdio-common/xbug.c +++ b/stdio-common/xbug.c @@ -9,8 +9,8 @@ typedef struct _Buffer { } Buffer; void InitBuffer (Buffer *b); -void AppendToBuffer (register Buffer *b, const char *str, register int len); -void ReadFile (register Buffer *buffer, FILE *input); +void AppendToBuffer (Buffer *b, const char *str, int len); +void ReadFile (Buffer *buffer, FILE *input); #define INIT_BUFFER_SIZE 10000 @@ -23,9 +23,9 @@ void InitBuffer(b) } void AppendToBuffer(b, str, len) - register Buffer *b; + Buffer *b; const char *str; - register int len; + int len; { while (b->used + len > b->room) { b->buff = (char *)realloc(b->buff, 2*b->room*(sizeof(char))); @@ -36,11 +36,11 @@ void AppendToBuffer(b, str, len) } void ReadFile(buffer, input) - register Buffer *buffer; + Buffer *buffer; FILE *input; { char buf[BUFSIZ + 1]; - register int bytes; + int bytes; buffer->used = 0; while (!feof(input) && (bytes = fread(buf, 1, BUFSIZ, input)) > 0) { -- cgit v1.2.3