aboutsummaryrefslogtreecommitdiff
path: root/src/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon.c')
-rw-r--r--src/daemon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/daemon.c b/src/daemon.c
index 97e84a9..5772623 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -2,7 +2,7 @@
daemon.c
This file is part of GNU Anubis.
- Copyright (C) 2001-2014 The Anubis Team.
+ Copyright (C) 2001-2024 The Anubis Team.
GNU Anubis is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -313,7 +313,7 @@ static int
_stdio_write (void *sd, const char *data, size_t size, size_t * nbytes)
{
int rc;
- int fd = (int) sd;
+ int fd = (int) (ptrdiff_t) sd;
if (fd == 0)
fd = 1;
@@ -330,7 +330,7 @@ static int
_stdio_read (void *sd, char *data, size_t size, size_t * nbytes)
{
int n;
- int fd = (int) sd;
+ int fd = (int) (ptrdiff_t) sd;
fd_set rds;
errno = 0;

Return to:

Send suggestions and report system problems to the System administrator.