From 6da4a9f2cceed55a7d65519d5b001e31f65930c1 Mon Sep 17 00:00:00 2001 From: Togashi Yuuta <58001666+togashigreat@users.noreply.github.com> Date: Sun, 20 Apr 2025 03:31:57 +0600 Subject: [PATCH] Fixed latest Clang errors: index() ---> strchr() --- c/linux.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/c/linux.c b/c/linux.c index 4cd1589..ede98d5 100644 --- a/c/linux.c +++ b/c/linux.c @@ -93,16 +93,16 @@ DiskInfo get_disk_info(void) { } while ( fgets(procline, sizeof(procline), mounts) ) { device = procline; - mount = index(procline, ' '); + mount = strchr(procline, ' '); if (mount == NULL) continue; *mount++ = '\0'; - type = index(mount, ' '); + type = strchr(mount, ' '); if (type == NULL) continue; *type++ = '\0'; - mode = index(type, ' '); + mode = strchr(type, ' '); if (mode == NULL) continue; *mode++ = '\0'; - other = index(mode, ' '); + other = strchr(mode, ' '); if (other != NULL) *other = '\0'; if (!strncmp(mode, "ro", 2)) continue; if (remote_mount(device, type)) continue;