[gthumb] _g_path_join: added const to the first parameter
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] _g_path_join: added const to the first parameter
- Date: Sun, 22 Mar 2020 07:36:58 +0000 (UTC)
commit 01fc9691fb63cab28b38509f4b7156ab680023b2
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Mar 22 08:27:09 2020 +0100
_g_path_join: added const to the first parameter
gthumb/uri-utils.c | 2 +-
gthumb/uri-utils.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/uri-utils.c b/gthumb/uri-utils.c
index 06bfcc7f..4c417db5 100644
--- a/gthumb/uri-utils.c
+++ b/gthumb/uri-utils.c
@@ -891,7 +891,7 @@ _g_path_join_components (char **comp_v)
char *
-_g_path_join (char *first, ...)
+_g_path_join (const char *first, ...)
{
va_list args;
const char *arg;
diff --git a/gthumb/uri-utils.h b/gthumb/uri-utils.h
index ca725c7f..c1987129 100644
--- a/gthumb/uri-utils.h
+++ b/gthumb/uri-utils.h
@@ -73,7 +73,7 @@ char * _g_uri_append_path (const char *uri,
char ** _g_path_split_components (const char *path,
int *size);
char * _g_path_join_components (char **comp_v);
-char * _g_path_join (char *first,
+char * _g_path_join (const char *first,
...) G_GNUC_NULL_TERMINATED;
const char * _g_path_get_basename (const char *path);
char * _g_path_get_parent (const char *path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]