[vlc-commits] actions: remove useless typedef
Thomas Guillem
git at videolan.org
Wed Aug 9 10:55:09 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Aug 3 15:10:40 2017 +0200| [eba059493b59201b3ebf38e3ab5f455ade388689] | committer: Hugo Beauzée-Luyssen
actions: remove useless typedef
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eba059493b59201b3ebf38e3ab5f455ade388689
---
src/misc/actions.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/misc/actions.c b/src/misc/actions.c
index 172ff066e6..06978b35c2 100644
--- a/src/misc/actions.c
+++ b/src/misc/actions.c
@@ -43,13 +43,13 @@
#include "config/configuration.h"
#include "libvlc.h"
-typedef struct key_descriptor_s
+struct key_descriptor
{
const char psz_key_string[20];
uint32_t i_key_code;
-} key_descriptor_t;
+};
-static const struct key_descriptor_s vlc_keys[] =
+static const struct key_descriptor vlc_keys[] =
{ /* Alphabetical order */
{ N_("Backspace"), KEY_BACKSPACE },
{ N_("Brightness Down"), KEY_BRIGHTNESS_DOWN },
@@ -199,8 +199,8 @@ uint_fast32_t vlc_str2keycode (const char *name)
name += len + 1;
}
- key_descriptor_t *d = bsearch (name, vlc_keys, KEYS_COUNT,
- sizeof (vlc_keys[0]), keystrcmp);
+ struct key_descriptor *d = bsearch (name, vlc_keys, KEYS_COUNT,
+ sizeof (vlc_keys[0]), keystrcmp);
if (d != NULL)
code = d->i_key_code;
else
More information about the vlc-commits
mailing list