Permalink
Browse files

fork () syscall should only return u16

  • Loading branch information...
1 parent 2ee7968 commit 4b5aef1c9aec80f46e3e34881d12a8c351d1b3c6 Matthew Danish committed Nov 15, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 libc/include/syscall.h
View
@@ -57,15 +57,15 @@ usleep (unsigned usec)
}
-static inline int
+static inline unsigned short
fork (void)
{
- int retval;
+ unsigned int retval;
asm volatile ("int $0x31\n":"=a" (retval)::CLOBBERS1);
- return retval;
+ return (unsigned short) retval;
}

0 comments on commit 4b5aef1

Please sign in to comment.