Changeset 36df27eb in mainline for uspace/srv


Ignore:
Timestamp:
2018-01-13T03:18:18Z (8 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

Location:
uspace/srv
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • 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.