Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Bug 562613 – Missing const modifier in string parameters
Browse files Browse the repository at this point in the history
2009-03-03  Alexander Larsson  <alexl@redhat.com>

	Bug 562613 – Missing const modifier in string parameters

        * gfileinputstream.[ch]:
        * gfileoutputstream.[ch]:
        * glocalfileinfo.[ch]:
	Make string arguments const if used as such.



svn path=/trunk/; revision=7952
  • Loading branch information
alexlarsson authored and Alexander Larsson committed Mar 3, 2009
1 parent 0b9f24c commit f891d4e
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 20 deletions.
9 changes: 9 additions & 0 deletions gio/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2009-03-03 Alexander Larsson <alexl@redhat.com>

Bug 562613 – Missing const modifier in string parameters

* gfileinputstream.[ch]:
* gfileoutputstream.[ch]:
* glocalfileinfo.[ch]:
Make string arguments const if used as such.

2009-03-03 Alexander Larsson <alexl@redhat.com>

* glocalfile.c (g_local_file_query_filesystem_info):
Expand Down
8 changes: 4 additions & 4 deletions gio/gfileinputstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static gboolean g_file_input_stream_seekable_truncate (GSeekable
GCancellable *cancellable,
GError **error);
static void g_file_input_stream_real_query_info_async (GFileInputStream *stream,
char *attributes,
const char *attributes,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
Expand Down Expand Up @@ -129,7 +129,7 @@ g_file_input_stream_init (GFileInputStream *stream)
**/
GFileInfo *
g_file_input_stream_query_info (GFileInputStream *stream,
char *attributes,
const char *attributes,
GCancellable *cancellable,
GError **error)
{
Expand Down Expand Up @@ -202,7 +202,7 @@ async_ready_callback_wrapper (GObject *source_object,
**/
void
g_file_input_stream_query_info_async (GFileInputStream *stream,
char *attributes,
const char *attributes,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
Expand Down Expand Up @@ -434,7 +434,7 @@ query_info_async_thread (GSimpleAsyncResult *res,

static void
g_file_input_stream_real_query_info_async (GFileInputStream *stream,
char *attributes,
const char *attributes,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
Expand Down
8 changes: 4 additions & 4 deletions gio/gfileinputstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ struct _GFileInputStreamClass
GCancellable *cancellable,
GError **error);
GFileInfo * (* query_info) (GFileInputStream *stream,
char *attributes,
const char *attributes,
GCancellable *cancellable,
GError **error);
void (* query_info_async) (GFileInputStream *stream,
char *attributes,
const char *attributes,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
Expand All @@ -94,11 +94,11 @@ struct _GFileInputStreamClass
GType g_file_input_stream_get_type (void) G_GNUC_CONST;

GFileInfo *g_file_input_stream_query_info (GFileInputStream *stream,
char *attributes,
const char *attributes,
GCancellable *cancellable,
GError **error);
void g_file_input_stream_query_info_async (GFileInputStream *stream,
char *attributes,
const char *attributes,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
Expand Down
8 changes: 4 additions & 4 deletions gio/gfileoutputstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static gboolean g_file_output_stream_seekable_truncate (GSeekable
GCancellable *cancellable,
GError **error);
static void g_file_output_stream_real_query_info_async (GFileOutputStream *stream,
char *attributes,
const char *attributes,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
Expand Down Expand Up @@ -143,7 +143,7 @@ g_file_output_stream_init (GFileOutputStream *stream)
**/
GFileInfo *
g_file_output_stream_query_info (GFileOutputStream *stream,
char *attributes,
const char *attributes,
GCancellable *cancellable,
GError **error)
{
Expand Down Expand Up @@ -211,7 +211,7 @@ async_ready_callback_wrapper (GObject *source_object,
**/
void
g_file_output_stream_query_info_async (GFileOutputStream *stream,
char *attributes,
const char *attributes,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
Expand Down Expand Up @@ -536,7 +536,7 @@ query_info_async_thread (GSimpleAsyncResult *res,

static void
g_file_output_stream_real_query_info_async (GFileOutputStream *stream,
char *attributes,
const char *attributes,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
Expand Down
8 changes: 4 additions & 4 deletions gio/gfileoutputstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ struct _GFileOutputStreamClass
GCancellable *cancellable,
GError **error);
GFileInfo * (* query_info) (GFileOutputStream *stream,
char *attributes,
const char *attributes,
GCancellable *cancellable,
GError **error);
void (* query_info_async) (GFileOutputStream *stream,
char *attributes,
const char *attributes,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
Expand All @@ -100,11 +100,11 @@ GType g_file_output_stream_get_type (void) G_GNUC_CONST;


GFileInfo *g_file_output_stream_query_info (GFileOutputStream *stream,
char *attributes,
const char *attributes,
GCancellable *cancellable,
GError **error);
void g_file_output_stream_query_info_async (GFileOutputStream *stream,
char *attributes,
const char *attributes,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
Expand Down
6 changes: 3 additions & 3 deletions gio/glocalfileinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1681,9 +1681,9 @@ _g_local_file_info_get (const char *basename,
}

GFileInfo *
_g_local_file_info_get_from_fd (int fd,
char *attributes,
GError **error)
_g_local_file_info_get_from_fd (int fd,
const char *attributes,
GError **error)
{
GLocalFileStat stat_buf;
GFileAttributeMatcher *matcher;
Expand Down
2 changes: 1 addition & 1 deletion gio/glocalfileinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ GFileInfo *_g_local_file_info_get (const char *basename,
GLocalParentFileInfo *parent_info,
GError **error);
GFileInfo *_g_local_file_info_get_from_fd (int fd,
char *attributes,
const char *attributes,
GError **error);
char * _g_local_file_info_create_etag (GLocalFileStat *statbuf);
gboolean _g_local_file_info_set_attribute (char *filename,
Expand Down

0 comments on commit f891d4e

Please sign in to comment.