aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/lwip-arch.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-07-15 09:09:48 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-07-15 09:09:48 +0100
commit0df54d980737b7c4bb07aa4ac29e1e7689a6019b (patch)
tree69c7a044efe1f909f03ad9ff32ef5a8e0d8a390f /extras/mini-os/lwip-arch.c
parent4a493bdc5c1f3ba22004fd6a260fc7b4c6d23fce (diff)
downloadxen-0df54d980737b7c4bb07aa4ac29e1e7689a6019b.tar.gz
xen-0df54d980737b7c4bb07aa4ac29e1e7689a6019b.tar.bz2
xen-0df54d980737b7c4bb07aa4ac29e1e7689a6019b.zip
minios: switch to C99 integer types
This is a necessary step to make minios build on NetBSD. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'extras/mini-os/lwip-arch.c')
-rw-r--r--extras/mini-os/lwip-arch.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/extras/mini-os/lwip-arch.c b/extras/mini-os/lwip-arch.c
index cdd4fa66cc..e634ef466e 100644
--- a/extras/mini-os/lwip-arch.c
+++ b/extras/mini-os/lwip-arch.c
@@ -20,7 +20,7 @@ void sys_init(void)
/* Creates and returns a new semaphore. The "count" argument specifies
* the initial state of the semaphore. */
-sys_sem_t sys_sem_new(u8_t count)
+sys_sem_t sys_sem_new(uint8_t count)
{
struct semaphore *sem = xmalloc(struct semaphore);
sem->count = count;
@@ -50,13 +50,13 @@ void sys_sem_signal(sys_sem_t sem)
* semaphore wasn't signaled within the specified time, the return value is
* SYS_ARCH_TIMEOUT. If the thread didn't have to wait for the semaphore
* (i.e., it was already signaled), the function may return zero. */
-u32_t sys_arch_sem_wait(sys_sem_t sem, u32_t timeout)
+uint32_t sys_arch_sem_wait(sys_sem_t sem, uint32_t timeout)
{
/* Slightly more complicated than the normal minios semaphore:
* need to wake on timeout *or* signal */
sys_prot_t prot;
- s64_t then = NOW();
- s64_t deadline;
+ int64_t then = NOW();
+ int64_t deadline;
if (timeout == 0)
deadline = 0;
@@ -174,9 +174,9 @@ static void do_mbox_fetch(sys_mbox_t mbox, void **msg)
* The return values are the same as for the sys_arch_sem_wait() function:
* Number of milliseconds spent waiting or SYS_ARCH_TIMEOUT if there was a
* timeout. */
-u32_t sys_arch_mbox_fetch(sys_mbox_t mbox, void **msg, u32_t timeout)
+uint32_t sys_arch_mbox_fetch(sys_mbox_t mbox, void **msg, uint32_t timeout)
{
- u32 rv;
+ uint32_t rv;
if (mbox == SYS_MBOX_NULL)
return SYS_ARCH_TIMEOUT;
@@ -199,7 +199,7 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t mbox, void **msg, u32_t timeout)
* sys_arch_mbox_fetch(mbox,msg,1)
* although this would introduce unnecessary delays. */
-u32_t sys_arch_mbox_tryfetch(sys_mbox_t mbox, void **msg) {
+uint32_t sys_arch_mbox_tryfetch(sys_mbox_t mbox, void **msg) {
if (mbox == SYS_MBOX_NULL)
return SYS_ARCH_TIMEOUT;