Browse Source

filesystem: add missing const to 2nd argument of stringlistappend

pull/2/head
Alibek Omarov 1 year ago
parent
commit
0d37244490
  1. 2
      filesystem/filesystem.c
  2. 2
      filesystem/filesystem_internal.h

2
filesystem/filesystem.c

@ -156,7 +156,7 @@ void stringlistfreecontents( stringlist_t *list )
list->strings = NULL; list->strings = NULL;
} }
void stringlistappend( stringlist_t *list, char *text ) void stringlistappend( stringlist_t *list, const char *text )
{ {
size_t textlen; size_t textlen;

2
filesystem/filesystem_internal.h

@ -191,7 +191,7 @@ qboolean MD5_HashFile( byte digest[16], const char *pszFileName, uint seed[4] );
// stringlist ops // stringlist ops
void stringlistinit( stringlist_t *list ); void stringlistinit( stringlist_t *list );
void stringlistfreecontents( stringlist_t *list ); void stringlistfreecontents( stringlist_t *list );
void stringlistappend( stringlist_t *list, char *text ); void stringlistappend( stringlist_t *list, const char *text );
void stringlistsort( stringlist_t *list ); void stringlistsort( stringlist_t *list );
void listdirectory( stringlist_t *list, const char *path ); void listdirectory( stringlist_t *list, const char *path );

Loading…
Cancel
Save