path: root/src/main.c
diff options
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 06:16:31 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 06:59:24 -0300
commitab49eda5720583b0470a329434554e97c735e696 (patch)
tree01dd96abb868c597d9c16023c7feefaacda9ef84 /src/main.c
parent39b0f779f454e7c4c58cc68352998e7f5ed7ab99 (diff)
Rename camera struct typedef from cam to cam_t
Depending on the gcc options, that causes a fatal warning: v4l.c:36:37: error: declaration of ‘cam’ shadows a global declaration [-Werror=shadow] static void insert_resolution(cam * cam, int x, int y) ~~~~~~^~~ In file included from v4l.c:6: v4l.h:99:3: note: shadowed declaration is here } cam; ^~~ Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/main.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index f6f0671..21b96ad 100644
--- a/src/main.c
+++ b/src/main.c
@@ -45,7 +45,7 @@ static GOptionEntry options[] = {
main(int argc, char *argv[]) {
- cam cam_object, *cam;
+ cam_t cam_object, *cam;
Display *display;
Screen *screen_num;
GConfClient *gc;

Privacy Policy