diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-11-08 11:20:52 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-11-08 11:20:52 +0100 |
commit | 1af867ab0889b5262a5bbffcb983dd8a9f5ac6f4 (patch) | |
tree | acad64a05b8b83d3f8fd78a56bd82b1f879ea8fc | |
parent | dbf210ca3b48bf446b0ebca7dceac2fe412d5fbc (diff) | |
download | v4l-utils-1af867ab0889b5262a5bbffcb983dd8a9f5ac6f4.tar.gz |
libdvbv5/dvb-dev-remote.c: fix send_fmt prototype
The 3rd argument should be a const char *, not a const char array.
This fixes a lot of compiler warnings for this source.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r-- | lib/libdvbv5/dvb-dev-remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdvbv5/dvb-dev-remote.c b/lib/libdvbv5/dvb-dev-remote.c index 3ef9d67c..cd783858 100644 --- a/lib/libdvbv5/dvb-dev-remote.c +++ b/lib/libdvbv5/dvb-dev-remote.c @@ -228,11 +228,11 @@ static ssize_t prepare_data(struct dvb_v5_fe_parms_priv *parms, } static struct queued_msg *send_fmt(struct dvb_device_priv *dvb, int fd, - const char cmd[CMD_SIZE], const char *fmt, ...) + const char *cmd, const char *fmt, ...) __attribute__ (( format( printf, 4, 5 ))); static struct queued_msg *send_fmt(struct dvb_device_priv *dvb, int fd, - const char cmd[CMD_SIZE], const char *fmt, ...) + const char *cmd, const char *fmt, ...) { struct dvb_v5_fe_parms_priv *parms = (void *)dvb->d.fe_parms; struct dvb_dev_remote_priv *priv = dvb->priv; |