libc: sleep's argument must be unsigned

This commit is contained in:
Giacomo Tesio 2017-08-16 00:55:54 +02:00
parent ef6aa99b74
commit 6ce619a2e0
2 changed files with 4 additions and 4 deletions

View File

@ -609,7 +609,7 @@ extern void* jehanne_segbrk(uint32_t);
extern void* jehanne_segattach(int, const char*, void*, unsigned long);
extern int jehanne_segdetach(void*);
extern int jehanne_segfree(void*, unsigned long);
extern void jehanne_sleep(int32_t);
extern void jehanne_sleep(unsigned int millisecs);
extern int jehanne_stat(const char*, uint8_t*, int);
extern Waitmsg* jehanne_wait(void);
extern int jehanne_waitpid(void);

View File

@ -1,7 +1,7 @@
/*
* This file is part of Jehanne.
*
* Copyright (C) 2015 Giacomo Tesio <giacomo@tesio.it>
* Copyright (C) 2015-2017 Giacomo Tesio <giacomo@tesio.it>
*
* Jehanne is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -20,9 +20,9 @@
#include <libc.h>
void
jehanne_sleep(int32_t millisecs)
jehanne_sleep(unsigned int millisecs)
{
int64_t wakeup;
long wakeup;
wakeup = awake(millisecs); // give up the processor, in any case
if(millisecs > 0)