Changeset 05b59393 in mainline for uspace/lib


Ignore:
Timestamp:
2017-10-04T18:02:14Z (8 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c9e88da
Parents:
0b2d369
Message:

Fix a couple of benign clang warnings.
No change in semantics.

Location:
uspace/lib
Files:
5 edited

Legend:

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

    r0b2d369 r05b59393  
    185185        sunit = NULL;
    186186
    187         if (cap->cunit < 0 || cap->cunit >= CU_LIMIT)
    188                 assert(false);
     187        assert(cap->cunit < CU_LIMIT);
    189188
    190189        rc = ipow10_u64(cap->dp, &div);
  • uspace/lib/hound/src/client.c

    r0b2d369 r05b59393  
    4848
    4949/** Stream structure */
    50 typedef struct hound_stream {
     50struct hound_stream {
    5151        /** link in context's list */
    5252        link_t link;
     
    5959        /** Stream flags */
    6060        int flags;
    61 } hound_stream_t;
     61};
    6262
    6363/**
     
    7272
    7373/** Hound client context structure */
    74 typedef struct hound_context {
     74struct hound_context {
    7575        /** Audio session */
    7676        hound_sess_t *session;
     
    8989        /** Assigned context id */
    9090        hound_context_id_t id;
    91 } hound_context_t;
     91};
    9292
    9393/**
  • uspace/lib/nettl/src/amap.c

    r0b2d369 r05b59393  
    5858#include <stdint.h>
    5959#include <stdlib.h>
     60
     61static portrng_flags_t aflags_to_pflags(amap_flags_t flags)
     62{
     63        // FIXME: either use a single type, or provide a proper conversion
     64        return (portrng_flags_t) flags;
     65}
    6066
    6167/** Create association map.
     
    378384        mepp = *epp;
    379385
    380         rc = portrng_alloc(repla->portrng, epp->local.port, arg, flags,
     386        rc = portrng_alloc(repla->portrng, epp->local.port, arg, aflags_to_pflags(flags),
    381387            &mepp.local.port);
    382388        if (rc != EOK) {
     
    422428        mepp = *epp;
    423429
    424         rc = portrng_alloc(laddr->portrng, epp->local.port, arg, flags,
     430        rc = portrng_alloc(laddr->portrng, epp->local.port, arg, aflags_to_pflags(flags),
    425431            &mepp.local.port);
    426432        if (rc != EOK) {
     
    466472        mepp = *epp;
    467473
    468         rc = portrng_alloc(llink->portrng, epp->local.port, arg, flags,
     474        rc = portrng_alloc(llink->portrng, epp->local.port, arg, aflags_to_pflags(flags),
    469475            &mepp.local.port);
    470476        if (rc != EOK) {
     
    498504        mepp = *epp;
    499505
    500         rc = portrng_alloc(map->unspec, epp->local.port, arg, flags,
     506        rc = portrng_alloc(map->unspec, epp->local.port, arg, aflags_to_pflags(flags),
    501507            &mepp.local.port);
    502508        if (rc != EOK) {
  • uspace/lib/usb/src/usb.c

    r0b2d369 r05b59393  
    7373const char *usb_str_transfer_type(usb_transfer_type_t t)
    7474{
    75         if (t >= ARRAY_SIZE(str_transfer_type)) {
     75        if ((size_t)t >= ARRAY_SIZE(str_transfer_type)) {
    7676                return "invalid";
    7777        }
     
    8686const char *usb_str_transfer_type_short(usb_transfer_type_t t)
    8787{
    88         if (t >= ARRAY_SIZE(str_transfer_type_short)) {
     88        if ((size_t)t >= ARRAY_SIZE(str_transfer_type_short)) {
    8989                return "invl";
    9090        }
  • uspace/lib/usbdev/src/devdrv.c

    r0b2d369 r05b59393  
    5353
    5454/** USB device structure. */
    55 typedef struct usb_device {
     55struct usb_device {
    5656        /** Connection to device on USB bus */
    5757        usb_dev_session_t *bus_session;
     
    9595         */
    9696        void *driver_data;
    97 } usb_device_t;
     97};
    9898
    9999/** Count number of pipes the driver expects.
Note: See TracChangeset for help on using the changeset viewer.