Fix const-correctness for g_system()

This commit is contained in:
matt335672 2022-12-08 16:23:35 +00:00
parent 321f124c73
commit df83fbf9bf
2 changed files with 2 additions and 2 deletions

View File

@ -2565,7 +2565,7 @@ g_get_proc_address(long lib, const char *name)
/*****************************************************************************/
/* does not work in win32 */
int
g_system(char *aexec)
g_system(const char *aexec)
{
#if defined(_WIN32)
return 0;

View File

@ -162,7 +162,7 @@ int g_file_get_inode_num(const char *filename);
long g_load_library(char *in);
int g_free_library(long lib);
void *g_get_proc_address(long lib, const char *name);
int g_system(char *aexec);
int g_system(const char *aexec);
char *g_get_strerror(void);
int g_get_errno(void);
int g_execvp(const char *p1, char *args[]);