mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 19:04:45 +03:00
CI/GCC: Add Fedora 44, fix build errors and threadsappend
- Add Fedora 44 to CI tests - Fix build issues from the newer compiler. These are mostly 'char *' to 'const char *' conversions. - Fix threadsappend.c test waiting for the same thread TID twice. This caused the test to hang on F44 (but strangely not other OSs?) Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #18478
This commit is contained in:
@@ -202,6 +202,7 @@ line_worker(char *line, const char *cachefile)
|
||||
void **tofree = tofree_all;
|
||||
|
||||
char *toktmp;
|
||||
const char *toktmp2;
|
||||
/* BEGIN CSTYLED */
|
||||
const char *dataset = strtok_r(line, "\t", &toktmp);
|
||||
char *p_mountpoint = strtok_r(NULL, "\t", &toktmp);
|
||||
@@ -226,8 +227,8 @@ line_worker(char *line, const char *cachefile)
|
||||
/* END CSTYLED */
|
||||
|
||||
size_t pool_len = strlen(dataset);
|
||||
if ((toktmp = strchr(dataset, '/')) != NULL)
|
||||
pool_len = toktmp - dataset;
|
||||
if ((toktmp2 = strchr(dataset, '/')) != NULL)
|
||||
pool_len = toktmp2 - dataset;
|
||||
const char *pool = *(tofree++) = strndup(dataset, pool_len);
|
||||
|
||||
if (p_nbmand == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user