iprutils: fix build error for older zlib versions
The use of gzclose_r() may break some builds depending on the version of zlib that is being used. Since that function is identical to gzclose() apart from some differences in static code linkage, we can swap them without any changes to program behaviour. Signed-off-by: Heitor Ricardo Alves de Siqueira <halves@linux.vnet.ibm.com> Reviewed-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com> Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
This commit is contained in:
parent
ca551fe3c4
commit
3340918f42
1 changed files with 3 additions and 3 deletions
|
|
@ -12337,7 +12337,7 @@ int ibm_storage_log(i_container *i_con)
|
|||
|
||||
write(log_fd, line, strlen(line));
|
||||
}
|
||||
gzclose_r(logsource_fp);
|
||||
gzclose(logsource_fp);
|
||||
dirent++;
|
||||
}
|
||||
|
||||
|
|
@ -12414,7 +12414,7 @@ int kernel_log(i_container *i_con)
|
|||
|
||||
while (gzgets(logsource_fp, line, sizeof(line)))
|
||||
write(log_fd, line, strlen(line));
|
||||
gzclose_r(logsource_fp);
|
||||
gzclose(logsource_fp);
|
||||
dirent++;
|
||||
}
|
||||
|
||||
|
|
@ -12496,7 +12496,7 @@ int iprconfig_log(i_container *i_con)
|
|||
continue;
|
||||
write(log_fd, line, strlen(line));
|
||||
}
|
||||
gzclose_r(logsource_fp);
|
||||
gzclose(logsource_fp);
|
||||
dirent++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue