Use 'const' for stack integers where possible.

May improve optimization possibilities in a few cases.
This commit is contained in:
Richard W.M. Jones
2016-07-26 10:19:22 +01:00
parent 4e391aad67
commit d5a8f82887
77 changed files with 204 additions and 192 deletions

View File

@@ -59,7 +59,7 @@ read_error_file (char *error_file)
static int
write_cb (void *fd_ptr, const void *buf, size_t len)
{
int fd = *(int *)fd_ptr;
const int fd = *(int *)fd_ptr;
return xwrite (fd, buf, len);
}