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

Changeset a217358 in mainline


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

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

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/mm/page.h

    rd8f92868 ra217358  
    177177#define PFERR_CODE_ID           (1 << 4)
    178178
    179 static inline int get_pt_flags(pte_t *pt, size_t i)
     179static inline unsigned int get_pt_flags(pte_t *pt, size_t i)
    180180{
    181181        pte_t *p = &pt[i];
  • kernel/arch/ia32/include/mm/page.h

    rd8f92868 ra217358  
    146146#define PFERR_CODE_RSVD         (1 << 3)       
    147147
    148 static inline int get_pt_flags(pte_t *pt, size_t i)
     148static inline unsigned int get_pt_flags(pte_t *pt, size_t i)
    149149{
    150150        pte_t *p = &pt[i];
  • kernel/arch/mips32/include/mm/page.h

    rd8f92868 ra217358  
    141141#include <arch/exception.h>
    142142
    143 static inline int get_pt_flags(pte_t *pt, size_t i)
     143static inline unsigned int get_pt_flags(pte_t *pt, size_t i)
    144144{
    145145        pte_t *p = &pt[i];
  • kernel/arch/ppc32/include/mm/page.h

    rd8f92868 ra217358  
    131131#include <arch/interrupt.h>
    132132
    133 static inline int get_pt_flags(pte_t *pt, size_t i)
     133static inline unsigned int get_pt_flags(pte_t *pt, size_t i)
    134134{
    135135        pte_t *p = &pt[i];
  • 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.