Solve compile warnings

This commit is contained in:
Iwan Timmer
2017-03-18 16:06:41 +01:00
parent 1a4794ff0e
commit fb7628cb50
2 changed files with 8 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
/*
* This file is part of Moonlight Embedded.
*
* Copyright (C) 2015 Iwan Timmer
* Copyright (C) 2015-2017 Iwan Timmer
*
* Moonlight is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,18 +22,15 @@
#include <stdio.h>
void connection_connection_terminated()
{
static void connection_connection_terminated() {
quit();
}
void connection_display_message(char *msg)
{
static void connection_display_message(const char *msg) {
printf("%s\n", msg);
}
void connection_display_transient_message(char *msg)
{
static void connection_display_transient_message(const char *msg) {
printf("%s\n", msg);
}

View File

@@ -1,7 +1,7 @@
/*
* This file is part of Moonlight Embedded.
*
* Copyright (C) 2015 Iwan Timmer
* Copyright (C) 2015-2017 Iwan Timmer
*
* Moonlight is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -36,9 +36,9 @@ static char g_strPort[50] = { 0 };
static libcec_interface_t g_iface;
static ICECCallbacks g_callbacks;
static int on_cec_keypress(void* userdata, const cec_keypress key) {
static void on_cec_keypress(void* userdata, const cec_keypress* key) {
char value;
switch (key.keycode) {
switch (key->keycode) {
case CEC_USER_CONTROL_CODE_UP:
value = KEY_UP;
break;
@@ -69,7 +69,7 @@ static int on_cec_keypress(void* userdata, const cec_keypress key) {
if (value != 0) {
short code = 0x80 << 8 | value;
LiSendKeyboardEvent(code, (key.duration > 0)?KEY_ACTION_UP:KEY_ACTION_DOWN, 0);
LiSendKeyboardEvent(code, (key->duration > 0)?KEY_ACTION_UP:KEY_ACTION_DOWN, 0);
}
}