Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/sysinfo.c

    rb7fd2a0 r38d150e  
    4949 *
    5050 */
    51 static errno_t sysinfo_get_keys_size(const char *path, size_t *size)
    52 {
    53         return (errno_t) __SYSCALL3(SYS_SYSINFO_GET_KEYS_SIZE, (sysarg_t) path,
     51static int sysinfo_get_keys_size(const char *path, size_t *size)
     52{
     53        return (int) __SYSCALL3(SYS_SYSINFO_GET_KEYS_SIZE, (sysarg_t) path,
    5454            (sysarg_t) str_size(path), (sysarg_t) size);
    5555}
     
    7575       
    7676        /* Get the keys size */
    77         errno_t ret = sysinfo_get_keys_size(path, size);
     77        int ret = sysinfo_get_keys_size(path, size);
    7878        if ((ret != EOK) || (size == 0)) {
    7979                /*
     
    9292        /* Get the data */
    9393        size_t sz;
    94         ret = (errno_t) __SYSCALL5(SYS_SYSINFO_GET_KEYS, (sysarg_t) path,
     94        ret = __SYSCALL5(SYS_SYSINFO_GET_KEYS, (sysarg_t) path,
    9595            (sysarg_t) str_size(path), (sysarg_t) data, (sysarg_t) *size,
    9696            (sysarg_t) &sz);
     
    127127 *
    128128 */
    129 errno_t sysinfo_get_value(const char *path, sysarg_t *value)
    130 {
    131         return (errno_t) __SYSCALL3(SYS_SYSINFO_GET_VALUE, (sysarg_t) path,
     129int sysinfo_get_value(const char *path, sysarg_t *value)
     130{
     131        return (int) __SYSCALL3(SYS_SYSINFO_GET_VALUE, (sysarg_t) path,
    132132            (sysarg_t) str_size(path), (sysarg_t) value);
    133133}
     
    142142 *
    143143 */
    144 static errno_t sysinfo_get_data_size(const char *path, size_t *size)
    145 {
    146         return (errno_t) __SYSCALL3(SYS_SYSINFO_GET_DATA_SIZE, (sysarg_t) path,
     144static int sysinfo_get_data_size(const char *path, size_t *size)
     145{
     146        return (int) __SYSCALL3(SYS_SYSINFO_GET_DATA_SIZE, (sysarg_t) path,
    147147            (sysarg_t) str_size(path), (sysarg_t) size);
    148148}
     
    168168       
    169169        /* Get the binary data size */
    170         errno_t ret = sysinfo_get_data_size(path, size);
     170        int ret = sysinfo_get_data_size(path, size);
    171171        if ((ret != EOK) || (size == 0)) {
    172172                /*
     
    186186        /* Get the data */
    187187        size_t sz;
    188         ret = (errno_t) __SYSCALL5(SYS_SYSINFO_GET_DATA, (sysarg_t) path,
     188        ret = __SYSCALL5(SYS_SYSINFO_GET_DATA, (sysarg_t) path,
    189189            (sysarg_t) str_size(path), (sysarg_t) data, (sysarg_t) *size,
    190190            (sysarg_t) &sz);
Note: See TracChangeset for help on using the changeset viewer.