From 5a73bbdb83f5f416ab6f6a33c3d61e07ca01fb85 Mon Sep 17 00:00:00 2001 From: James Zern Date: Sat, 9 May 2015 10:40:51 -0700 Subject: [PATCH] tools_common.h: fix get_vpx_encoder_count() proto silences a missing-prototype warning Change-Id: Icf5c7f1f3e8ae9792276068fb3c0fd04b40fc7ad --- tools_common.c | 2 +- tools_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools_common.c b/tools_common.c index e243a91..7e22217 100644 --- a/tools_common.c +++ b/tools_common.c @@ -140,7 +140,7 @@ static const VpxInterface vpx_encoders[] = { #endif }; -int get_vpx_encoder_count() { +int get_vpx_encoder_count(void) { return sizeof(vpx_encoders) / sizeof(vpx_encoders[0]); } diff --git a/tools_common.h b/tools_common.h index b92980a..db6e268 100644 --- a/tools_common.h +++ b/tools_common.h @@ -131,7 +131,7 @@ typedef struct VpxInterface { vpx_codec_iface_t *(*const codec_interface)(); } VpxInterface; -int get_vpx_encoder_count(); +int get_vpx_encoder_count(void); const VpxInterface *get_vpx_encoder_by_index(int i); const VpxInterface *get_vpx_encoder_by_name(const char *name); -- 2.7.4