summaryrefslogtreecommitdiff
path: root/net-mail/notmuch/files/notmuch-0.40-fix_pointers.patch
blob: e522e5eb1130d71ca92b6f165c968301a59ce5cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
fix incompatible pointers (glibc-2.43 / musl)
sent to ML
--- a/notmuch-insert.c
+++ b/notmuch-insert.c
@@ -115,7 +115,7 @@ mkdir_recursive (const void *ctx, const char *path, int mode)
 {
     struct stat st;
     int r;
-    char *parent = NULL, *slash;
+    const char *parent = NULL, *slash;
 
     /* First check the common case: directory already exists. */
     r = stat (path, &st);
--- 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);
    }
 }