summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-03-20 00:54:14 +0100
committerBenjamin Otte <otte@redhat.com>2010-03-21 14:17:47 +0100
commit3f511ec3612102d8a39291ea3946b832b81b7bd0 (patch)
tree1cfe91d932d57b6001acb85e514b233173960594 /sys
parent0f7631f8ec2d65b2368e5bd1a24f9df49353dcb4 (diff)
Add -Wwrite-strings to the configure flags
... and fix all warnings
Diffstat (limited to 'sys')
-rw-r--r--sys/oss/gstossmixertrack.c2
-rw-r--r--sys/v4l2/gstv4l2object.c2
-rw-r--r--sys/v4l2/gstv4l2object.h4
-rw-r--r--sys/v4l2/gstv4l2src.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/sys/oss/gstossmixertrack.c b/sys/oss/gstossmixertrack.c
index 4b1d962f5..3bc8cde37 100644
--- a/sys/oss/gstossmixertrack.c
+++ b/sys/oss/gstossmixertrack.c
@@ -83,7 +83,7 @@ static void
fill_labels (void)
{
gint i, pos;
- gchar *origs[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_LABELS;
+ const gchar *origs[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_LABELS;
const struct
{
const gchar *given;
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c
index 7d9409e7b..a363d4a99 100644
--- a/sys/v4l2/gstv4l2object.c
+++ b/sys/v4l2/gstv4l2object.c
@@ -331,7 +331,7 @@ gst_v4l2_object_install_properties_helper (GObjectClass * gobject_class,
GstV4l2Object *
gst_v4l2_object_new (GstElement * element,
enum v4l2_buf_type type,
- char *default_device,
+ const char *default_device,
GstV4l2GetInOutFunction get_in_out_func,
GstV4l2SetInOutFunction set_in_out_func,
GstV4l2UpdateFpsFunction update_fps_func)
diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h
index ba0799f66..8660924aa 100644
--- a/sys/v4l2/gstv4l2object.h
+++ b/sys/v4l2/gstv4l2object.h
@@ -136,8 +136,8 @@ GType gst_v4l2_object_get_type (void);
/* create/destroy */
GstV4l2Object * gst_v4l2_object_new (GstElement * element,
- enum v4l2_buf_type type,
- char *default_device,
+ enum v4l2_buf_type type,
+ const char *default_device,
GstV4l2GetInOutFunction get_in_out_func,
GstV4l2SetInOutFunction set_in_out_func,
GstV4l2UpdateFpsFunction update_fps_func);
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c
index 331fa7585..5a70de6b0 100644
--- a/sys/v4l2/gstv4l2src.c
+++ b/sys/v4l2/gstv4l2src.c
@@ -969,7 +969,7 @@ gst_v4l2src_uri_get_type (void)
static gchar **
gst_v4l2src_uri_get_protocols (void)
{
- static gchar *protocols[] = { "v4l2", NULL };
+ static gchar *protocols[] = { (char *) "v4l2", NULL };
return protocols;
}