1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

Cleanup: Fixed some compiler warnings

This commit is contained in:
Philipp Schafft 2018-06-19 10:47:03 +00:00
parent ea42a12efb
commit 513b62aeea
2 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@
#include <string.h>
#include <ogg/ogg.h>
#include "compat.h"
#include "refbuf.h"
#include "format_ogg.h"
#include "format_kate.h"
@ -34,7 +35,7 @@
typedef struct _kate_codec_tag
{
int headers_done;
int num_headers;
size_t num_headers;
int granule_shift;
ogg_int64_t last_iframe;
ogg_int64_t prev_granulepos;

View File

@ -1024,7 +1024,7 @@ static enum __tokenizer_result __tokenizer_str(char **out, char **in)
o = p;
for (; (c = *p); p++) {
if (c == '\t' || c == ' ' || c == 0x21 || (c >= 0x23 && c <= 0x5B) || (c >= 0x5D && c <= 0x7E) || (c >= 0x80 && c <= 0xFF)) {
if (c == '\t' || c == ' ' || c == 0x21 || (c >= 0x23 && c <= 0x5B) || (c >= 0x5D && c <= 0x7E) || ((unsigned char)c >= 0x80)) {
*(o++) = c;
} else if (c == '\\') {
p++;