Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a217358 in mainline for uspace/lib/libc/generic/io/klog.c


Ignore:
Timestamp:
2009-11-16T17:57:53Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
9c70ed6
Parents:
d8f92868
Message:

fix minor glitches detected by Vcc checker (thx to Ondrej Sery)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/io/klog.c

    rd8f92868 ra217358  
    4242size_t klog_write(const void *buf, size_t size)
    4343{
    44         return (size_t) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) buf, size);
     44        ssize_t ret = (ssize_t) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) buf, size);
     45       
     46        if (ret >= 0)
     47                return (size_t) ret;
     48       
     49        return 0;
    4550}
    4651
Note: See TracChangeset for help on using the changeset viewer.