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

Changeset 18902ca6 in mainline


Ignore:
Timestamp:
2017-10-04T18:25:38Z (4 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master
Children:
fa77af7
Parents:
63011c53
Message:

Fix several bugs and typos detected by clang.

Location:
uspace
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/nic/nic.c

    r63011c53 r18902ca6  
    120120        if (sess == NULL) {
    121121                printf("Error connecting to service.\n");
     122                rc = EIO;
    122123                goto error;
    123124        }
     
    209210}
    210211
    211 static const char *nic_multicast_mode_str(nic_unicast_mode_t mode)
     212static const char *nic_multicast_mode_str(nic_multicast_mode_t mode)
    212213{
    213214        switch (mode) {
     
    220221}
    221222
    222 static const char *nic_broadcast_mode_str(nic_unicast_mode_t mode)
     223static const char *nic_broadcast_mode_str(nic_broadcast_mode_t mode)
    223224{
    224225        switch (mode) {
  • uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.c

    r63011c53 r18902ca6  
    7878
    7979        /* Allow less data on input. */
    80         if (dir == USB_DIRECTION_IN) {
     80        if (direction == USB_DIRECTION_IN) {
    8181                OHCI_MEM32_SET(instance->status, TD_STATUS_ROUND_FLAG);
    8282        }
  • uspace/lib/c/arch/amd64/include/libarch/elf_linux.h

    r63011c53 r18902ca6  
    3434
    3535#ifndef LIBC_amd64_ELF_LINUX_H_
    36 #define LBIC_amd64_ELF_LINUX_H_
     36#define LIBC_amd64_ELF_LINUX_H_
    3737
    3838#include <libarch/istate.h>
  • uspace/lib/c/test/odict.c

    r63011c53 r18902ca6  
    272272
    273273                v = seq_next(v);
    274                 ++i;
    275274        }
    276275}
  • uspace/srv/fs/exfat/exfat_ops.c

    r63011c53 r18902ca6  
    595595int exfat_node_put(fs_node_t *fn)
    596596{
     597        if (fn == NULL)
     598                return EOK;
     599
    597600        exfat_node_t *nodep = EXFAT_NODE(fn);
    598601        bool destroy = false;
     
    932935int exfat_free_block_count(service_id_t service_id, uint64_t *count)
    933936{
    934         fs_node_t *node;
     937        fs_node_t *node = NULL;
    935938        exfat_node_t *bmap_node;
    936939        exfat_bs_t *bs;
     
    945948
    946949        bs = block_bb_get(service_id);
    947         node = NULL;
    948950        rc = exfat_bitmap_get(&node, service_id);
    949951        if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.