diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-06-07 22:24:35 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-06-07 22:24:35 +0000 |
commit | 2e09a79ada1f6d92809a037d41895e3d9302ad59 (patch) | |
tree | 999c9d18279a7de289937116273ae4016356aa3a /stdio-common/xbug.c | |
parent | 8e254d8e0d0820716e0ccf5f2b89c4fd1325f051 (diff) | |
download | glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.tar glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.tar.gz glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.tar.bz2 glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.zip |
Avoid use of "register" as optimization hint.
Diffstat (limited to 'stdio-common/xbug.c')
-rw-r--r-- | stdio-common/xbug.c | 12 |
1 files changed, 6 insertions, 6 deletions
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) { |