These warnings aren't needed

This commit is contained in:
Alcaro 2017-12-31 14:33:36 +01:00
parent e5f986d16d
commit abf4e50e6d
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ static void x11_set_window_pid(Display *dpy, Window win)
errno = 0;
if((scret = sysconf(_SC_HOST_NAME_MAX)) == -1 && errno)
return;
if((hostname = malloc(scret + 1)) == NULL)
if((hostname = (char*)malloc(scret + 1)) == NULL)
return;
if(gethostname(hostname, scret + 1) == -1)

View File

@ -396,7 +396,7 @@ int filestream_read_file(const char *path, void **buf, ssize_t *len)
if (!content_buf)
goto error;
if ((size_t)(content_buf_size + 1) != (content_buf_size + 1))
if ((int64_t)(size_t)(content_buf_size + 1) != (content_buf_size + 1))
goto error;
ret = filestream_read(file, content_buf, (int64_t)content_buf_size);