diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-11-24 13:56:06 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-11-24 13:56:06 +0100 |
commit | 6941ff312bc3df2578143871566980c02dade212 (patch) | |
tree | c7e49145b00c69552d1b90d98d1133eaa897de9e /v4l2-apps/util | |
parent | aadce2c5e2229edf817d779c20b5bcf74e12ac1a (diff) | |
download | mediapointer-dvb-s2-6941ff312bc3df2578143871566980c02dade212.tar.gz mediapointer-dvb-s2-6941ff312bc3df2578143871566980c02dade212.tar.bz2 |
qv4l2: fix compile warnings.
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l2-apps/util')
-rw-r--r-- | v4l2-apps/util/qv4l2/qv4l2.cpp | 8 | ||||
-rw-r--r-- | v4l2-apps/util/qv4l2/qv4l2.h | 2 |
2 files changed, 5 insertions, 5 deletions
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); |