mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Use 'const' for stack integers where possible.
May improve optimization possibilities in a few cases.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user