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

Changeset 36df27eb in mainline


Ignore:
Timestamp:
2018-01-13T03:18:18Z (4 years ago)
Author:
GitHub <noreply@…>
Parents:
a53ed3a (diff), 08d4ea2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-13 03:18:18)
git-committer:
GitHub <noreply@…> (2018-01-13 03:18:18)
Message:

Merge 08d4ea2111e5db01d0a6194bd9da4248ee282dc7 into a53ed3a8097360ccf174e8d94fb407db919eb66a

Files:
28 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/ddi/ddi-bitmap.c

    ra53ed3a r36df27eb  
    142142        task->arch.iomapver++;
    143143       
    144         return 0;
     144        return EOK;
    145145}
    146146
  • kernel/genarch/src/ddi/ddi-dummy.c

    ra53ed3a r36df27eb  
    5050errno_t ddi_iospace_enable_arch(task_t *task, uintptr_t ioaddr, size_t size)
    5151{
    52         return 0;
     52        return EOK;
    5353}
    5454
     
    6565errno_t ddi_iospace_disable_arch(task_t *task, uintptr_t ioaddr, size_t size)
    6666{
    67         return 0;
     67        return EOK;
    6868}
    6969
  • uspace/app/corecfg/corecfg.c

    ra53ed3a r36df27eb  
    3636#include <errno.h>
    3737#include <stdio.h>
     38#include <stdlib.h>
    3839
    3940#define NAME "corecfg"
  • uspace/app/download/main.c

    ra53ed3a r36df27eb  
    243243        }
    244244
    245         return EOK;
     245        return 0;
    246246error:
    247247        free(buf);
  • uspace/app/getterm/getterm.c

    ra53ed3a r36df27eb  
    3737#include <stdint.h>
    3838#include <stdio.h>
     39#include <stdlib.h>
    3940#include <task.h>
    4041#include <str_error.h>
  • uspace/app/kio/kio.c

    ra53ed3a r36df27eb  
    253253                rc = EOK;
    254254
    255         return EOK;
     255        return rc;
    256256}
    257257
  • uspace/app/sysinfo/sysinfo.c

    ra53ed3a r36df27eb  
    9090        fputs("')\n", stdout);
    9191       
    92         return EOK;
     92        return 0;
    9393}
    9494
     
    109109        fputs("')\n", stdout);
    110110       
    111         return EOK;
     111        return 0;
    112112}
    113113
  • uspace/app/wifi_supplicant/wifi_supplicant.c

    ra53ed3a r36df27eb  
    324324        print_syntax();
    325325       
    326         return EOK;
     326        return 0;
    327327}
    328328
  • uspace/lib/c/generic/vfs/vfs.c

    ra53ed3a r36df27eb  
    12791279        async_wait_for(req, &rc_orig);
    12801280
     1281        // XXX: Workaround for GCC diagnostics.
     1282        *handle = -1;
     1283
    12811284        if (rc_orig != EOK)
    12821285                return (errno_t) rc_orig;
  • uspace/lib/c/include/stdlib.h

    ra53ed3a r36df27eb  
    5151extern void exit(int) __attribute__((noreturn));
    5252
     53#define EXIT_SUCCESS 0
     54#define EXIT_FAILURE -1
     55
    5356#endif
    5457
  • uspace/lib/drv/generic/driver.c

    ra53ed3a r36df27eb  
    10091009       
    10101010        /* Never reached. */
    1011         return EOK;
     1011        return 0;
    10121012}
    10131013
  • uspace/srv/audio/hound/main.c

    ra53ed3a r36df27eb  
    8080                log_fatal("Failed to initialize hound structure: %s",
    8181                    str_error(ret));
    82                 return -ret;
     82                return ret;
    8383        }
    8484
     
    9191        if (ret != EOK) {
    9292                log_fatal("Failed to register server: %s", str_error(ret));
    93                 return -ret;
     93                return ret;
    9494        }
    9595
     
    9999                    str_error(ret));
    100100                hound_server_unregister(id);
    101                 return -ret;
     101                return ret;
    102102        }
    103103        log_info("Running with service id %" PRIun, id);
  • uspace/srv/bd/file_bd/file_bd.c

    ra53ed3a r36df27eb  
    4747#include <stddef.h>
    4848#include <stdint.h>
     49#include <stdlib.h>
    4950#include <errno.h>
    5051#include <str_error.h>
  • uspace/srv/bd/sata_bd/sata_bd.c

    ra53ed3a r36df27eb  
    258258        rc = get_sata_disks();
    259259        if (rc != EOK) {
    260                 // TODO: log the error
     260                printf(NAME ": Cannot find SATA disks: %s.\n", str_error(rc));
    261261                return rc;
    262262        }
  • uspace/srv/fs/cdfs/cdfs.c

    ra53ed3a r36df27eb  
    4343#include <str_error.h>
    4444#include <stdio.h>
     45#include <stdlib.h>
    4546#include <libfs.h>
    4647#include "cdfs.h"
  • uspace/srv/fs/exfat/exfat.c

    ra53ed3a r36df27eb  
    4646#include <task.h>
    4747#include <stdio.h>
     48#include <stdlib.h>
    4849#include <libfs.h>
    4950#include "../../vfs/vfs.h"
  • uspace/srv/fs/ext4fs/ext4fs.c

    ra53ed3a r36df27eb  
    4040#include <ns.h>
    4141#include <stdio.h>
     42#include <stdlib.h>
    4243#include <task.h>
    4344#include <ipc/services.h>
  • uspace/srv/fs/fat/fat.c

    ra53ed3a r36df27eb  
    4646#include <task.h>
    4747#include <stdio.h>
     48#include <stdlib.h>
    4849#include <libfs.h>
    4950#include "../../vfs/vfs.h"
  • uspace/srv/fs/locfs/locfs.c

    ra53ed3a r36df27eb  
    4040
    4141#include <stdio.h>
     42#include <stdlib.h>
    4243#include <ipc/services.h>
    4344#include <ns.h>
  • uspace/srv/fs/tmpfs/tmpfs.c

    ra53ed3a r36df27eb  
    4848#include <str_error.h>
    4949#include <stdio.h>
     50#include <stdlib.h>
    5051#include <task.h>
    5152#include <libfs.h>
  • uspace/srv/fs/udf/udf.c

    ra53ed3a r36df27eb  
    4242#include <errno.h>
    4343#include <str_error.h>
     44#include <stdlib.h>
    4445#include <task.h>
    4546#include <libfs.h>
  • uspace/srv/hid/compositor/compositor.c

    ra53ed3a r36df27eb  
    22542254        if (rc != EOK) {
    22552255                printf("%s: Unable to register server (%s)\n", NAME, str_error(rc));
    2256                 return -1;
     2256                return rc;
    22572257        }
    22582258       
     
    22722272        char winreg[LOC_NAME_MAXLEN + 1];
    22732273        snprintf(winreg, LOC_NAME_MAXLEN, "%s%s/winreg", NAMESPACE, server_name);
    2274         if (loc_service_register(winreg, &winreg_id) != EOK) {
     2274        rc = loc_service_register(winreg, &winreg_id);
     2275        if (rc != EOK) {
    22752276                printf("%s: Unable to register service %s\n", NAME, winreg);
    2276                 return -1;
     2277                return rc;
    22772278        }
    22782279       
  • uspace/srv/hid/isdv4_tablet/main.c

    ra53ed3a r36df27eb  
    320320        service_id_t service_id;
    321321        char *service_name;
    322         rc = asprintf(&service_name, "mouse/isdv4-%" PRIun, svc_id);
    323         if (rc < 0) {
     322        if (asprintf(&service_name, "mouse/isdv4-%" PRIun, svc_id) < 0) {
    324323                printf(NAME ": Unable to create service name\n");
    325                 return rc;
     324                return ENOMEM;
    326325        }
    327326
  • uspace/srv/hid/rfb/main.c

    ra53ed3a r36df27eb  
    224224
    225225        char *service_name;
    226         rc = asprintf(&service_name, "rfb/%s", rfb_name);
    227         if (rc < 0) {
     226        if (asprintf(&service_name, "rfb/%s", rfb_name) < 0) {
    228227                printf(NAME ": Unable to create service name\n");
    229                 return rc;
     228                return ENOMEM;
    230229        }
    231230
  • uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c

    ra53ed3a r36df27eb  
    9595                return -1;
    9696
    97         if (s3c24xx_ts_init(ts) != EOK)
     97        if (s3c24xx_ts_init(ts) != 0)
    9898                return -1;
    9999
     
    141141        s3c24xx_ts_wait_for_int_mode(ts, updn_down);
    142142
    143         return EOK;
     143        return 0;
    144144}
    145145
  • uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c

    ra53ed3a r36df27eb  
    9292                return -1;
    9393
    94         if (s3c24xx_uart_init(uart) != EOK)
     94        if (s3c24xx_uart_init(uart) != 0)
    9595                return -1;
    9696
     
    187187        uart->cds.sarg = uart;
    188188
    189         return EOK;
     189        return 0;
    190190}
    191191
  • uspace/srv/ns/ns.c

    ra53ed3a r36df27eb  
    4242#include <abi/ipc/interfaces.h>
    4343#include <stdio.h>
     44#include <stdlib.h>
    4445#include <errno.h>
    4546#include <macros.h>
  • uspace/srv/test/chardev-test/main.c

    ra53ed3a r36df27eb  
    3535#include <mem.h>
    3636#include <stdio.h>
     37#include <stdlib.h>
    3738#include <task.h>
    3839
Note: See TracChangeset for help on using the changeset viewer.