aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 04:42:55 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 05:30:45 (GMT)
commitaaa4be2deff84afba8b67fad30bffbe07c7866d6 (patch)
tree2a098f878b743d4a1d489d922bbf24a939cde374
parent15ed7589922db9a515ce2c8b1d306f48de6f0c2b (diff)
Put drv->open into parenthesis
This patch were imported from Fedora 12 set of patches for xawtv. Probably, it fixes some compilation breakage. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--console/webcam.c2
-rw-r--r--libng/grab-ng.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/console/webcam.c b/console/webcam.c
index 37c836f..b66fb07 100644
--- a/console/webcam.c
+++ b/console/webcam.c
@@ -813,7 +813,7 @@ main(int argc, char *argv[])
tmpdir = (NULL != getenv("TMPDIR")) ? getenv("TMPDIR") : "/tmp";
list_for_each(item,&connections) {
s = list_entry(item, struct xfer_state, list);
- s->ops->open(s);
+ (s->ops->open)(s);
}
/* print config */
diff --git a/libng/grab-ng.c b/libng/grab-ng.c
index e29942e..e096ffe 100644
--- a/libng/grab-ng.c
+++ b/libng/grab-ng.c
@@ -572,7 +572,7 @@ ng_vid_open(char *device, char *driver, struct ng_video_fmt *screen,
continue;
if (ng_debug)
fprintf(stderr,"vid-open: trying: %s... \n", drv->name);
- if (NULL != (*handle = drv->open(device)))
+ if (NULL != (*handle = (drv->open)(device)))
break;
if (ng_debug)
fprintf(stderr,"vid-open: failed: %s\n",drv->name);
@@ -603,7 +603,7 @@ ng_dsp_open(char *device, struct ng_audio_fmt *fmt, int record, void **handle)
continue;
if (ng_debug)
fprintf(stderr,"dsp-open: trying: %s... \n", drv->name);
- if (NULL != (*handle = drv->open(device,fmt,record)))
+ if (NULL != (*handle = (drv->open)(device,fmt,record)))
break;
if (ng_debug)
fprintf(stderr,"dsp-open: failed: %s\n", drv->name);
@@ -628,7 +628,7 @@ ng_mix_init(char *device, char *channel)
drv = list_entry(item, struct ng_mix_driver, list);
if (ng_debug)
fprintf(stderr,"mix-init: trying: %s... \n", drv->name);
- if (NULL != (handle = drv->open(device))) {
+ if (NULL != (handle = (drv->open)(device))) {
if (NULL != (attrs = drv->volctl(handle,channel)))
break;
drv->close(handle);

Privacy Policy