Skip to content

Commit

Permalink
const gpointer -> gconstpointer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed Aug 27, 2008
1 parent 3ec7e57 commit 109ecd8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/format_raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct _FormatRawEntry {
const gchar *extension;
FormatRawMatchType magic_type;
const guint magic_offset;
const gpointer magic_pattern;
gconstpointer magic_pattern;
const guint magic_length;
const FormatRawExifType exif_type;
FormatRawExifParseFunc exif_func;
Expand All @@ -67,7 +67,7 @@ static FormatRawEntry format_raw_list[] = {
typedef struct _FormatExifEntry FormatExifEntry;
struct _FormatExifEntry {
FormatExifMatchType header_type;
const gpointer header_pattern;
gconstpointer header_pattern;
const guint header_length;
const gchar *description;
FormatExifParseFunc func_parse;
Expand Down
2 changes: 1 addition & 1 deletion src/secure_save.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ secure_fprintf(SecureSaveInfo *ssi, const gchar *format, ...)
* the number of elements to write. If ssi->err is set when called, it immediatly returns 0.
*/
size_t
secure_fwrite(const gpointer ptr, size_t size, size_t nmemb, SecureSaveInfo *ssi)
secure_fwrite(gconstpointer ptr, size_t size, size_t nmemb, SecureSaveInfo *ssi)
{
size_t ret;

Expand Down
2 changes: 1 addition & 1 deletion src/secure_save.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gint secure_fputs(SecureSaveInfo *, const gchar *);
gint secure_fputc(SecureSaveInfo *, gint);

gint secure_fprintf(SecureSaveInfo *, const gchar *, ...);
size_t secure_fwrite(const gpointer ptr, size_t size, size_t nmemb, SecureSaveInfo *ssi);
size_t secure_fwrite(gconstpointer ptr, size_t size, size_t nmemb, SecureSaveInfo *ssi);

gchar *secsave_strerror(SecureSaveErrno);

Expand Down
2 changes: 1 addition & 1 deletion src/similar.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void image_sim_free(ImageSimilarityData *sd)
g_free(sd);
}

static gint image_sim_channel_eq_sort_cb(const gpointer a, const gpointer b)
static gint image_sim_channel_eq_sort_cb(gconstpointer a, gconstpointer b)
{
gint *pa = (gpointer)a;
gint *pb = (gpointer)b;
Expand Down

0 comments on commit 109ecd8

Please sign in to comment.