summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
Diffstat (limited to 'src/unix')
-rw-r--r--src/unix/hunk.c2
-rw-r--r--src/unix/system.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/unix/hunk.c b/src/unix/hunk.c
index c4d1fcb..ebd0d20 100644
--- a/src/unix/hunk.c
+++ b/src/unix/hunk.c
@@ -66,7 +66,7 @@ void Hunk_End(memhunk_t *hunk)
#else
void *unmap_base = (byte *)hunk->base + newsize;
size_t unmap_len = hunk->maxsize - newsize;
- void *buf = munmap(unmap_base, unmap_len) + hunk->base;
+ void *buf = munmap(unmap_base, unmap_len) + (byte *)hunk->base;
#endif
if (buf != hunk->base)
Com_Error(ERR_FATAL, "%s: could not remap virtual block: %s",
diff --git a/src/unix/system.c b/src/unix/system.c
index f2c4a3d..481f1f8 100644
--- a/src/unix/system.c
+++ b/src/unix/system.c
@@ -83,7 +83,7 @@ static int stdout_sleep(void)
// handles partial writes correctly, but never spins too much
// blocks for 100 ms before giving up and losing data
-static void stdout_write(const void *buf, size_t len)
+static void stdout_write(const char *buf, size_t len)
{
const char *what;
int ret, spins;