These warnings aren't needed
This commit is contained in:
parent
e5f986d16d
commit
abf4e50e6d
|
@ -172,7 +172,7 @@ static void x11_set_window_pid(Display *dpy, Window win)
|
||||||
errno = 0;
|
errno = 0;
|
||||||
if((scret = sysconf(_SC_HOST_NAME_MAX)) == -1 && errno)
|
if((scret = sysconf(_SC_HOST_NAME_MAX)) == -1 && errno)
|
||||||
return;
|
return;
|
||||||
if((hostname = malloc(scret + 1)) == NULL)
|
if((hostname = (char*)malloc(scret + 1)) == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(gethostname(hostname, scret + 1) == -1)
|
if(gethostname(hostname, scret + 1) == -1)
|
||||||
|
|
|
@ -396,7 +396,7 @@ int filestream_read_file(const char *path, void **buf, ssize_t *len)
|
||||||
|
|
||||||
if (!content_buf)
|
if (!content_buf)
|
||||||
goto error;
|
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;
|
goto error;
|
||||||
|
|
||||||
ret = filestream_read(file, content_buf, (int64_t)content_buf_size);
|
ret = filestream_read(file, content_buf, (int64_t)content_buf_size);
|
||||||
|
|
Loading…
Reference in New Issue