mirror of
https://github.com/SuperBFG7/ympd
synced 2025-03-04 10:38:18 +00:00
Fix: use long types for strtol return value
This commit is contained in:
parent
01496c15b6
commit
b7cee0a617
@ -528,7 +528,7 @@ void mympd_idle(struct mg_mgr *s, int timeout) {
|
||||
switch (mpd.conn_state) {
|
||||
case MPD_DISCONNECTED:
|
||||
/* Try to connect */
|
||||
fprintf(stdout, "MPD Connecting to %s:%d\n", config.mpdhost, config.mpdport);
|
||||
fprintf(stdout, "MPD Connecting to %s: %ld\n", config.mpdhost, config.mpdport);
|
||||
mpd.conn = mpd_connection_new(config.mpdhost, config.mpdport, mpd.timeout);
|
||||
if (mpd.conn == NULL) {
|
||||
fprintf(stderr, "Out of memory.");
|
||||
|
@ -129,7 +129,7 @@ struct t_mpd {
|
||||
} mpd;
|
||||
|
||||
typedef struct {
|
||||
int mpdport;
|
||||
long mpdport;
|
||||
const char* mpdhost;
|
||||
const char* mpdpass;
|
||||
const char* webport;
|
||||
@ -138,7 +138,7 @@ typedef struct {
|
||||
const char* sslcert;
|
||||
const char* sslkey;
|
||||
const char* user;
|
||||
int streamport;
|
||||
long streamport;
|
||||
const char* coverimage;
|
||||
const char* statefile;
|
||||
bool stickers;
|
||||
@ -148,10 +148,10 @@ typedef struct {
|
||||
t_config config;
|
||||
|
||||
typedef struct {
|
||||
int playCount;
|
||||
int skipCount;
|
||||
int lastPlayed;
|
||||
int like;
|
||||
long playCount;
|
||||
long skipCount;
|
||||
long lastPlayed;
|
||||
long like;
|
||||
} t_sticker;
|
||||
|
||||
static int is_websocket(const struct mg_connection *nc) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user