Changeset 1433ecda in mainline for uspace/app/nic


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

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

    r47b2d7e3 r1433ecda  
    182182{
    183183        switch (link_state) {
    184         case NIC_CS_UNKNOWN: return "unknown";
    185         case NIC_CS_PLUGGED: return "up";
    186         case NIC_CS_UNPLUGGED: return "down";
    187         default: assert(false); return NULL;
     184        case NIC_CS_UNKNOWN:
     185                return "unknown";
     186        case NIC_CS_PLUGGED:
     187                return "up";
     188        case NIC_CS_UNPLUGGED:
     189                return "down";
     190        default:
     191                assert(false);
     192                return NULL;
    188193        }
    189194}
     
    192197{
    193198        switch (mode) {
    194         case NIC_CM_FULL_DUPLEX: return "full-duplex";
    195         case NIC_CM_HALF_DUPLEX: return "half-duplex";
    196         case NIC_CM_SIMPLEX: return "simplex";
    197         default: assert(false); return NULL;
     199        case NIC_CM_FULL_DUPLEX:
     200                return "full-duplex";
     201        case NIC_CM_HALF_DUPLEX:
     202                return "half-duplex";
     203        case NIC_CM_SIMPLEX:
     204                return "simplex";
     205        default:
     206                assert(false);
     207                return NULL;
    198208        }
    199209}
     
    202212{
    203213        switch (mode) {
    204         case NIC_UNICAST_UNKNOWN: return "unknown";
    205         case NIC_UNICAST_BLOCKED: return "blocked";
    206         case NIC_UNICAST_DEFAULT: return "default";
    207         case NIC_UNICAST_LIST: return "list";
    208         case NIC_UNICAST_PROMISC: return "promisc";
    209         default: assert(false); return NULL;
     214        case NIC_UNICAST_UNKNOWN:
     215                return "unknown";
     216        case NIC_UNICAST_BLOCKED:
     217                return "blocked";
     218        case NIC_UNICAST_DEFAULT:
     219                return "default";
     220        case NIC_UNICAST_LIST:
     221                return "list";
     222        case NIC_UNICAST_PROMISC:
     223                return "promisc";
     224        default:
     225                assert(false);
     226                return NULL;
    210227        }
    211228}
     
    214231{
    215232        switch (mode) {
    216         case NIC_MULTICAST_UNKNOWN: return "unknown";
    217         case NIC_MULTICAST_BLOCKED: return "blocked";
    218         case NIC_MULTICAST_LIST: return "list";
    219         case NIC_MULTICAST_PROMISC: return "promisc";
    220         default: assert(false); return NULL;
     233        case NIC_MULTICAST_UNKNOWN:
     234                return "unknown";
     235        case NIC_MULTICAST_BLOCKED:
     236                return "blocked";
     237        case NIC_MULTICAST_LIST:
     238                return "list";
     239        case NIC_MULTICAST_PROMISC:
     240                return "promisc";
     241        default:
     242                assert(false);
     243                return NULL;
    221244        }
    222245}
     
    225248{
    226249        switch (mode) {
    227         case NIC_BROADCAST_UNKNOWN: return "unknown";
    228         case NIC_BROADCAST_BLOCKED: return "blocked";
    229         case NIC_BROADCAST_ACCEPTED: return "accepted";
    230         default: assert(false); return NULL;
     250        case NIC_BROADCAST_UNKNOWN:
     251                return "unknown";
     252        case NIC_BROADCAST_BLOCKED:
     253                return "blocked";
     254        case NIC_BROADCAST_ACCEPTED:
     255                return "accepted";
     256        default:
     257                assert(false);
     258                return NULL;
    231259        }
    232260}
Note: See TracChangeset for help on using the changeset viewer.