From 6941ff312bc3df2578143871566980c02dade212 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Mon, 24 Nov 2008 13:56:06 +0100 Subject: qv4l2: fix compile warnings. From: Hans Verkuil Priority: normal Signed-off-by: Hans Verkuil --- v4l2-apps/util/qv4l2/qv4l2.cpp | 8 ++++---- v4l2-apps/util/qv4l2/qv4l2.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'v4l2-apps/util') diff --git a/v4l2-apps/util/qv4l2/qv4l2.cpp b/v4l2-apps/util/qv4l2/qv4l2.cpp index eb1506531..d144723d9 100644 --- a/v4l2-apps/util/qv4l2/qv4l2.cpp +++ b/v4l2-apps/util/qv4l2/qv4l2.cpp @@ -136,13 +136,13 @@ void ApplicationWindow::selectdev(int index) setDevice(videoDevice->text(index)); } -void ApplicationWindow::add_dirVideoDevice(char *dirname) +void ApplicationWindow::add_dirVideoDevice(const char *dirname) { DIR *dir; struct dirent *entry; - char *vid = "video"; - char *rad = "radio"; - char *vbi = "vbi"; + const char *vid = "video"; + const char *rad = "radio"; + const char *vbi = "vbi"; char name[512], *p; dir = opendir(dirname); diff --git a/v4l2-apps/util/qv4l2/qv4l2.h b/v4l2-apps/util/qv4l2/qv4l2.h index 805c5d612..5421a867d 100644 --- a/v4l2-apps/util/qv4l2/qv4l2.h +++ b/v4l2-apps/util/qv4l2/qv4l2.h @@ -66,7 +66,7 @@ private slots: void about(); private: - void add_dirVideoDevice(char *dirname); + void add_dirVideoDevice(const char *dirname); void addTabs(); void finishGrid(QWidget *vbox, QGrid *grid, unsigned ctrl_class, bool odd); void addCtrl(QGrid *grid, const struct v4l2_queryctrl &qctrl); -- cgit v1.2.3