]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix const char warning 701/head
authorMartin Matuska <martin@matuska.org>
Wed, 11 May 2016 07:01:43 +0000 (09:01 +0200)
committerMartin Matuska <martin@matuska.org>
Wed, 11 May 2016 07:01:43 +0000 (09:01 +0200)
libarchive/archive_read_support_format_mtree.c

index 81d96521138e4c976d41fcfc82115a767e7559ae..3efcc37837e6193090aac6723deaa21a05bb5e6c 100644 (file)
@@ -1342,7 +1342,7 @@ parse_line(struct archive_read *a, struct archive_entry *entry,
 /* strsep() is not in C90, but strcspn() is. */
 /* Taken from http://unixpapa.com/incnote/string.html */
 static char *
-la_strsep(char **sp, char *sep)
+la_strsep(char **sp, const char *sep)
 {
        char *p, *s;
        if (sp == NULL || *sp == NULL || **sp == '\0')