Skip to content

Commit

Permalink
gegl_buffer_linear_open should return a gpointer, not a gpointer*
Browse files Browse the repository at this point in the history
  • Loading branch information
drawoc committed Apr 1, 2015
1 parent 9b14848 commit beed174
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gegl/buffer/gegl-buffer-linear.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ typedef struct {
/* FIXME: make this use direct data access in more cases than the
* case of the base buffer.
*/
gpointer *
gpointer
gegl_buffer_linear_open (GeglBuffer *buffer,
const GeglRectangle *extent, /* if NULL, use buf */
gint *rowstride,/* returns rowstride */
Expand Down
2 changes: 1 addition & 1 deletion gegl/buffer/gegl-buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ GeglBuffer * gegl_buffer_linear_new_from_data (const gpointer data,
* request is compatible with the underlying data storage direct access
* to the underlying data is provided. Otherwise, it returns a copy of the data.
*/
gpointer * gegl_buffer_linear_open (GeglBuffer *buffer,
gpointer gegl_buffer_linear_open (GeglBuffer *buffer,
const GeglRectangle *extent,
gint *rowstride,
const Babl *format);
Expand Down
2 changes: 1 addition & 1 deletion operations/external/path.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ process (GeglOperation *operation,
guchar *data;

g_mutex_lock (&mutex);
data = (void*)gegl_buffer_linear_open (output, result, NULL, babl_format ("B'aG'aR'aA u8"));
data = gegl_buffer_linear_open (output, result, NULL, babl_format ("B'aG'aR'aA u8"));
surface = cairo_image_surface_create_for_data (data,
CAIRO_FORMAT_ARGB32,
result->width,
Expand Down
2 changes: 1 addition & 1 deletion operations/external/vector-fill.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ process (GeglOperation *operation,
guchar *data;

g_mutex_lock (&mutex);
data = (void*)gegl_buffer_linear_open (output, result, NULL, babl_format ("cairo-ARGB32"));
data = gegl_buffer_linear_open (output, result, NULL, babl_format ("cairo-ARGB32"));
surface = cairo_image_surface_create_for_data (data,
CAIRO_FORMAT_ARGB32,
result->width,
Expand Down
2 changes: 1 addition & 1 deletion operations/external/vector-stroke.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ process (GeglOperation *operation,
guchar *data;

g_mutex_lock (&mutex);
data = (void*)gegl_buffer_linear_open (output, result, NULL, babl_format ("cairo-ARGB32"));
data = gegl_buffer_linear_open (output, result, NULL, babl_format ("cairo-ARGB32"));
surface = cairo_image_surface_create_for_data (data,
CAIRO_FORMAT_ARGB32,
result->width,
Expand Down
2 changes: 1 addition & 1 deletion tests/buffer/tests/linear_modify.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TEST ()
gfloat *buf;
gint x, y, i;

buf = (gpointer)gegl_buffer_linear_open (buffer, &extent, &rowstride, NULL);
buf = gegl_buffer_linear_open (buffer, &extent, &rowstride, NULL);
g_assert (buf);

i=0;
Expand Down
2 changes: 1 addition & 1 deletion tests/buffer/tests/linear_proxy_modify.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TEST ()
gfloat *buf;
gint x, y, i;

buf = (gpointer)gegl_buffer_linear_open (buffer, &extent, &rowstride, NULL);
buf = gegl_buffer_linear_open (buffer, &extent, &rowstride, NULL);
g_assert (buf);

i=0;
Expand Down

0 comments on commit beed174

Please sign in to comment.