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 /libio/oldfileops.c | |
parent | 8e254d8e0d0820716e0ccf5f2b89c4fd1325f051 (diff) | |
download | glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.tar.gz glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.tar.xz glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.zip |
Avoid use of "register" as optimization hint.
Diffstat (limited to 'libio/oldfileops.c')
-rw-r--r-- | libio/oldfileops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libio/oldfileops.c b/libio/oldfileops.c index 80e4b57ee2..c9537f4d87 100644 --- a/libio/oldfileops.c +++ b/libio/oldfileops.c @@ -689,7 +689,7 @@ _IO_old_file_xsputn (f, data, n) const void *data; _IO_size_t n; { - register const char *s = (char *) data; + const char *s = (char *) data; _IO_size_t to_do = n; int must_flush = 0; _IO_size_t count = 0; @@ -706,7 +706,7 @@ _IO_old_file_xsputn (f, data, n) count = f->_IO_buf_end - f->_IO_write_ptr; if (count >= n) { - register const char *p; + const char *p; for (p = s + n; p > s; ) { if (*--p == '\n') @@ -738,8 +738,8 @@ _IO_old_file_xsputn (f, data, n) } else { - register char *p = f->_IO_write_ptr; - register int i = (int) count; + char *p = f->_IO_write_ptr; + int i = (int) count; while (--i >= 0) *p++ = *s++; f->_IO_write_ptr = p; |