summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utmps/utmps-utmpd.c4
-rw-r--r--src/utmps/utmps-wtmpd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/utmps/utmps-utmpd.c b/src/utmps/utmps-utmpd.c
index 42fb4ed..b098b79 100644
--- a/src/utmps/utmps-utmpd.c
+++ b/src/utmps/utmps-utmpd.c
@@ -39,8 +39,8 @@ static void flush1 (void)
static void answer (int e)
{
- char c = e ;
- buffer_putnoflush(buffer_1small, &c, 1) ;
+ unsigned char c = e ;
+ buffer_putnoflush(buffer_1small, (char *)&c, 1) ;
flush1() ;
}
diff --git a/src/utmps/utmps-wtmpd.c b/src/utmps/utmps-wtmpd.c
index b8ff5c3..3571658 100644
--- a/src/utmps/utmps-wtmpd.c
+++ b/src/utmps/utmps-wtmpd.c
@@ -19,8 +19,8 @@
static void answer (int e)
{
- char c = e ;
- write(1, &c, 1) ;
+ unsigned char c = e ;
+ write(1, (char *)&c, 1) ;
}
int main (void)