[PATCH 1/2] test: fix T560 with musl

Subject: [PATCH 1/2] test: fix T560 with musl

Date: Wed, 11 Feb 2026 14:29:55 +0100

To: notmuch@notmuchmail.org

Cc: Nicolas PARLANT

From: Nicolas PARLANT


notmuch_database_status_string is const in notmuch.h

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
---
 test/T560-lib-error.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh
index 78cae1cd..fbb1709c 100755
--- a/test/T560-lib-error.sh
+++ b/test/T560-lib-error.sh
@@ -183,7 +183,7 @@ int main (int argc, char** argv)
    }
    stat = notmuch_database_index_file (db, "./nonexistent", NULL, NULL);
    if (stat) {
-       char *status_string = notmuch_database_status_string (db);
+       const char *status_string = notmuch_database_status_string (db);
        if (status_string) fputs (status_string, stderr);
    }
 }
-- 
2.52.0

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: