Commit 06f8fe11 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

decnet: Reduce switch/case indent

Make the case labels the same indent as the switch.

git diff -w shows differences for line wrapping.
(fit multiple lines to 80 columns, join where possible)
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4a9e4b09
This diff is collapsed.
...@@ -437,17 +437,17 @@ int dn_dev_ioctl(unsigned int cmd, void __user *arg) ...@@ -437,17 +437,17 @@ int dn_dev_ioctl(unsigned int cmd, void __user *arg)
dev_load(&init_net, ifr->ifr_name); dev_load(&init_net, ifr->ifr_name);
switch(cmd) { switch (cmd) {
case SIOCGIFADDR: case SIOCGIFADDR:
break; break;
case SIOCSIFADDR: case SIOCSIFADDR:
if (!capable(CAP_NET_ADMIN)) if (!capable(CAP_NET_ADMIN))
return -EACCES; return -EACCES;
if (sdn->sdn_family != AF_DECnet) if (sdn->sdn_family != AF_DECnet)
return -EINVAL;
break;
default:
return -EINVAL; return -EINVAL;
break;
default:
return -EINVAL;
} }
rtnl_lock(); rtnl_lock();
...@@ -470,27 +470,27 @@ int dn_dev_ioctl(unsigned int cmd, void __user *arg) ...@@ -470,27 +470,27 @@ int dn_dev_ioctl(unsigned int cmd, void __user *arg)
goto done; goto done;
} }
switch(cmd) { switch (cmd) {
case SIOCGIFADDR: case SIOCGIFADDR:
*((__le16 *)sdn->sdn_nodeaddr) = ifa->ifa_local; *((__le16 *)sdn->sdn_nodeaddr) = ifa->ifa_local;
goto rarok; goto rarok;
case SIOCSIFADDR: case SIOCSIFADDR:
if (!ifa) { if (!ifa) {
if ((ifa = dn_dev_alloc_ifa()) == NULL) { if ((ifa = dn_dev_alloc_ifa()) == NULL) {
ret = -ENOBUFS; ret = -ENOBUFS;
break; break;
}
memcpy(ifa->ifa_label, dev->name, IFNAMSIZ);
} else {
if (ifa->ifa_local == dn_saddr2dn(sdn))
break;
dn_dev_del_ifa(dn_db, ifap, 0);
} }
memcpy(ifa->ifa_label, dev->name, IFNAMSIZ);
} else {
if (ifa->ifa_local == dn_saddr2dn(sdn))
break;
dn_dev_del_ifa(dn_db, ifap, 0);
}
ifa->ifa_local = ifa->ifa_address = dn_saddr2dn(sdn); ifa->ifa_local = ifa->ifa_address = dn_saddr2dn(sdn);
ret = dn_dev_set_ifa(dev, ifa); ret = dn_dev_set_ifa(dev, ifa);
} }
done: done:
rtnl_unlock(); rtnl_unlock();
...@@ -1335,13 +1335,13 @@ static void dn_dev_seq_stop(struct seq_file *seq, void *v) ...@@ -1335,13 +1335,13 @@ static void dn_dev_seq_stop(struct seq_file *seq, void *v)
static char *dn_type2asc(char type) static char *dn_type2asc(char type)
{ {
switch(type) { switch (type) {
case DN_DEV_BCAST: case DN_DEV_BCAST:
return "B"; return "B";
case DN_DEV_UCAST: case DN_DEV_UCAST:
return "U"; return "U";
case DN_DEV_MPOINT: case DN_DEV_MPOINT:
return "M"; return "M";
} }
return "?"; return "?";
......
...@@ -414,33 +414,34 @@ int dn_fib_semantic_match(int type, struct dn_fib_info *fi, const struct flowidn ...@@ -414,33 +414,34 @@ int dn_fib_semantic_match(int type, struct dn_fib_info *fi, const struct flowidn
res->fi = fi; res->fi = fi;
switch(type) { switch (type) {
case RTN_NAT: case RTN_NAT:
DN_FIB_RES_RESET(*res); DN_FIB_RES_RESET(*res);
atomic_inc(&fi->fib_clntref);
return 0;
case RTN_UNICAST:
case RTN_LOCAL:
for_nexthops(fi) {
if (nh->nh_flags & RTNH_F_DEAD)
continue;
if (!fld->flowidn_oif ||
fld->flowidn_oif == nh->nh_oif)
break;
}
if (nhsel < fi->fib_nhs) {
res->nh_sel = nhsel;
atomic_inc(&fi->fib_clntref); atomic_inc(&fi->fib_clntref);
return 0; return 0;
case RTN_UNICAST: }
case RTN_LOCAL: endfor_nexthops(fi);
for_nexthops(fi) { res->fi = NULL;
if (nh->nh_flags & RTNH_F_DEAD) return 1;
continue; default:
if (!fld->flowidn_oif || if (net_ratelimit())
fld->flowidn_oif == nh->nh_oif) printk("DECnet: impossible routing event : dn_fib_semantic_match type=%d\n",
break; type);
} res->fi = NULL;
if (nhsel < fi->fib_nhs) { return -EINVAL;
res->nh_sel = nhsel;
atomic_inc(&fi->fib_clntref);
return 0;
}
endfor_nexthops(fi);
res->fi = NULL;
return 1;
default:
if (net_ratelimit())
printk("DECnet: impossible routing event : dn_fib_semantic_match type=%d\n", type);
res->fi = NULL;
return -EINVAL;
} }
} }
return err; return err;
...@@ -647,20 +648,20 @@ static int dn_fib_dnaddr_event(struct notifier_block *this, unsigned long event, ...@@ -647,20 +648,20 @@ static int dn_fib_dnaddr_event(struct notifier_block *this, unsigned long event,
{ {
struct dn_ifaddr *ifa = (struct dn_ifaddr *)ptr; struct dn_ifaddr *ifa = (struct dn_ifaddr *)ptr;
switch(event) { switch (event) {
case NETDEV_UP: case NETDEV_UP:
dn_fib_add_ifaddr(ifa); dn_fib_add_ifaddr(ifa);
dn_fib_sync_up(ifa->ifa_dev->dev); dn_fib_sync_up(ifa->ifa_dev->dev);
dn_rt_cache_flush(-1);
break;
case NETDEV_DOWN:
dn_fib_del_ifaddr(ifa);
if (ifa->ifa_dev && ifa->ifa_dev->ifa_list == NULL) {
dn_fib_disable_addr(ifa->ifa_dev->dev, 1);
} else {
dn_rt_cache_flush(-1); dn_rt_cache_flush(-1);
break; }
case NETDEV_DOWN: break;
dn_fib_del_ifaddr(ifa);
if (ifa->ifa_dev && ifa->ifa_dev->ifa_list == NULL) {
dn_fib_disable_addr(ifa->ifa_dev->dev, 1);
} else {
dn_rt_cache_flush(-1);
}
break;
} }
return NOTIFY_DONE; return NOTIFY_DONE;
} }
......
...@@ -404,13 +404,13 @@ int dn_neigh_router_hello(struct sk_buff *skb) ...@@ -404,13 +404,13 @@ int dn_neigh_router_hello(struct sk_buff *skb)
dn->flags &= ~DN_NDFLAG_P3; dn->flags &= ~DN_NDFLAG_P3;
switch(msg->iinfo & DN_RT_INFO_TYPE) { switch (msg->iinfo & DN_RT_INFO_TYPE) {
case DN_RT_INFO_L1RT: case DN_RT_INFO_L1RT:
dn->flags &=~DN_NDFLAG_R2; dn->flags &=~DN_NDFLAG_R2;
dn->flags |= DN_NDFLAG_R1; dn->flags |= DN_NDFLAG_R1;
break; break;
case DN_RT_INFO_L2RT: case DN_RT_INFO_L2RT:
dn->flags |= DN_NDFLAG_R2; dn->flags |= DN_NDFLAG_R2;
} }
} }
......
...@@ -101,23 +101,27 @@ static void dn_ack(struct sock *sk, struct sk_buff *skb, unsigned short ack) ...@@ -101,23 +101,27 @@ static void dn_ack(struct sock *sk, struct sk_buff *skb, unsigned short ack)
unsigned short type = ((ack >> 12) & 0x0003); unsigned short type = ((ack >> 12) & 0x0003);
int wakeup = 0; int wakeup = 0;
switch(type) { switch (type) {
case 0: /* ACK - Data */ case 0: /* ACK - Data */
if (dn_after(ack, scp->ackrcv_dat)) { if (dn_after(ack, scp->ackrcv_dat)) {
scp->ackrcv_dat = ack & 0x0fff; scp->ackrcv_dat = ack & 0x0fff;
wakeup |= dn_nsp_check_xmit_queue(sk, skb, &scp->data_xmit_queue, ack); wakeup |= dn_nsp_check_xmit_queue(sk, skb,
} &scp->data_xmit_queue,
break; ack);
case 1: /* NAK - Data */ }
break; break;
case 2: /* ACK - OtherData */ case 1: /* NAK - Data */
if (dn_after(ack, scp->ackrcv_oth)) { break;
scp->ackrcv_oth = ack & 0x0fff; case 2: /* ACK - OtherData */
wakeup |= dn_nsp_check_xmit_queue(sk, skb, &scp->other_xmit_queue, ack); if (dn_after(ack, scp->ackrcv_oth)) {
} scp->ackrcv_oth = ack & 0x0fff;
break; wakeup |= dn_nsp_check_xmit_queue(sk, skb,
case 3: /* NAK - OtherData */ &scp->other_xmit_queue,
break; ack);
}
break;
case 3: /* NAK - OtherData */
break;
} }
if (wakeup && !sock_flag(sk, SOCK_DEAD)) if (wakeup && !sock_flag(sk, SOCK_DEAD))
...@@ -417,19 +421,19 @@ static void dn_nsp_disc_init(struct sock *sk, struct sk_buff *skb) ...@@ -417,19 +421,19 @@ static void dn_nsp_disc_init(struct sock *sk, struct sk_buff *skb)
scp->addrrem = cb->src_port; scp->addrrem = cb->src_port;
sk->sk_state = TCP_CLOSE; sk->sk_state = TCP_CLOSE;
switch(scp->state) { switch (scp->state) {
case DN_CI: case DN_CI:
case DN_CD: case DN_CD:
scp->state = DN_RJ; scp->state = DN_RJ;
sk->sk_err = ECONNREFUSED; sk->sk_err = ECONNREFUSED;
break; break;
case DN_RUN: case DN_RUN:
sk->sk_shutdown |= SHUTDOWN_MASK; sk->sk_shutdown |= SHUTDOWN_MASK;
scp->state = DN_DN; scp->state = DN_DN;
break; break;
case DN_DI: case DN_DI:
scp->state = DN_DIC; scp->state = DN_DIC;
break; break;
} }
if (!sock_flag(sk, SOCK_DEAD)) { if (!sock_flag(sk, SOCK_DEAD)) {
...@@ -470,23 +474,23 @@ static void dn_nsp_disc_conf(struct sock *sk, struct sk_buff *skb) ...@@ -470,23 +474,23 @@ static void dn_nsp_disc_conf(struct sock *sk, struct sk_buff *skb)
sk->sk_state = TCP_CLOSE; sk->sk_state = TCP_CLOSE;
switch(scp->state) { switch (scp->state) {
case DN_CI: case DN_CI:
scp->state = DN_NR; scp->state = DN_NR;
break; break;
case DN_DR: case DN_DR:
if (reason == NSP_REASON_DC) if (reason == NSP_REASON_DC)
scp->state = DN_DRC; scp->state = DN_DRC;
if (reason == NSP_REASON_NL) if (reason == NSP_REASON_NL)
scp->state = DN_CN;
break;
case DN_DI:
scp->state = DN_DIC;
break;
case DN_RUN:
sk->sk_shutdown |= SHUTDOWN_MASK;
case DN_CC:
scp->state = DN_CN; scp->state = DN_CN;
break;
case DN_DI:
scp->state = DN_DIC;
break;
case DN_RUN:
sk->sk_shutdown |= SHUTDOWN_MASK;
case DN_CC:
scp->state = DN_CN;
} }
if (!sock_flag(sk, SOCK_DEAD)) { if (!sock_flag(sk, SOCK_DEAD)) {
...@@ -692,16 +696,16 @@ static int dn_nsp_no_socket(struct sk_buff *skb, unsigned short reason) ...@@ -692,16 +696,16 @@ static int dn_nsp_no_socket(struct sk_buff *skb, unsigned short reason)
goto out; goto out;
if ((reason != NSP_REASON_OK) && ((cb->nsp_flags & 0x0c) == 0x08)) { if ((reason != NSP_REASON_OK) && ((cb->nsp_flags & 0x0c) == 0x08)) {
switch(cb->nsp_flags & 0x70) { switch (cb->nsp_flags & 0x70) {
case 0x10: case 0x10:
case 0x60: /* (Retransmitted) Connect Init */ case 0x60: /* (Retransmitted) Connect Init */
dn_nsp_return_disc(skb, NSP_DISCINIT, reason); dn_nsp_return_disc(skb, NSP_DISCINIT, reason);
ret = NET_RX_SUCCESS; ret = NET_RX_SUCCESS;
break; break;
case 0x20: /* Connect Confirm */ case 0x20: /* Connect Confirm */
dn_nsp_return_disc(skb, NSP_DISCCONF, reason); dn_nsp_return_disc(skb, NSP_DISCCONF, reason);
ret = NET_RX_SUCCESS; ret = NET_RX_SUCCESS;
break; break;
} }
} }
...@@ -733,17 +737,17 @@ static int dn_nsp_rx_packet(struct sk_buff *skb) ...@@ -733,17 +737,17 @@ static int dn_nsp_rx_packet(struct sk_buff *skb)
* Filter out conninits and useless packet types * Filter out conninits and useless packet types
*/ */
if ((cb->nsp_flags & 0x0c) == 0x08) { if ((cb->nsp_flags & 0x0c) == 0x08) {
switch(cb->nsp_flags & 0x70) { switch (cb->nsp_flags & 0x70) {
case 0x00: /* NOP */ case 0x00: /* NOP */
case 0x70: /* Reserved */ case 0x70: /* Reserved */
case 0x50: /* Reserved, Phase II node init */ case 0x50: /* Reserved, Phase II node init */
goto free_out;
case 0x10:
case 0x60:
if (unlikely(cb->rt_flags & DN_RT_F_RTS))
goto free_out; goto free_out;
case 0x10: sk = dn_find_listener(skb, &reason);
case 0x60: goto got_it;
if (unlikely(cb->rt_flags & DN_RT_F_RTS))
goto free_out;
sk = dn_find_listener(skb, &reason);
goto got_it;
} }
} }
...@@ -836,20 +840,20 @@ int dn_nsp_backlog_rcv(struct sock *sk, struct sk_buff *skb) ...@@ -836,20 +840,20 @@ int dn_nsp_backlog_rcv(struct sock *sk, struct sk_buff *skb)
* Control packet. * Control packet.
*/ */
if ((cb->nsp_flags & 0x0c) == 0x08) { if ((cb->nsp_flags & 0x0c) == 0x08) {
switch(cb->nsp_flags & 0x70) { switch (cb->nsp_flags & 0x70) {
case 0x10: case 0x10:
case 0x60: case 0x60:
dn_nsp_conn_init(sk, skb); dn_nsp_conn_init(sk, skb);
break; break;
case 0x20: case 0x20:
dn_nsp_conn_conf(sk, skb); dn_nsp_conn_conf(sk, skb);
break; break;
case 0x30: case 0x30:
dn_nsp_disc_init(sk, skb); dn_nsp_disc_init(sk, skb);
break; break;
case 0x40: case 0x40:
dn_nsp_disc_conf(sk, skb); dn_nsp_disc_conf(sk, skb);
break; break;
} }
} else if (cb->nsp_flags == 0x24) { } else if (cb->nsp_flags == 0x24) {
...@@ -890,15 +894,15 @@ int dn_nsp_backlog_rcv(struct sock *sk, struct sk_buff *skb) ...@@ -890,15 +894,15 @@ int dn_nsp_backlog_rcv(struct sock *sk, struct sk_buff *skb)
if (scp->state != DN_RUN) if (scp->state != DN_RUN)
goto free_out; goto free_out;
switch(cb->nsp_flags) { switch (cb->nsp_flags) {
case 0x10: /* LS */ case 0x10: /* LS */
dn_nsp_linkservice(sk, skb); dn_nsp_linkservice(sk, skb);
break; break;
case 0x30: /* OD */ case 0x30: /* OD */
dn_nsp_otherdata(sk, skb); dn_nsp_otherdata(sk, skb);
break; break;
default: default:
dn_nsp_data(sk, skb); dn_nsp_data(sk, skb);
} }
} else { /* Ack, chuck it out here */ } else { /* Ack, chuck it out here */
......
...@@ -495,11 +495,11 @@ static int dn_route_rx_packet(struct sk_buff *skb) ...@@ -495,11 +495,11 @@ static int dn_route_rx_packet(struct sk_buff *skb)
} }
if ((skb->pkt_type == PACKET_HOST) && (cb->rt_flags & DN_RT_F_RQR)) { if ((skb->pkt_type == PACKET_HOST) && (cb->rt_flags & DN_RT_F_RQR)) {
switch(cb->rt_flags & DN_RT_PKT_MSK) { switch (cb->rt_flags & DN_RT_PKT_MSK) {
case DN_RT_PKT_SHORT: case DN_RT_PKT_SHORT:
return dn_return_short(skb); return dn_return_short(skb);
case DN_RT_PKT_LONG: case DN_RT_PKT_LONG:
return dn_return_long(skb); return dn_return_long(skb);
} }
} }
...@@ -652,38 +652,38 @@ int dn_route_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type ...@@ -652,38 +652,38 @@ int dn_route_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type
if (unlikely(skb_linearize(skb))) if (unlikely(skb_linearize(skb)))
goto dump_it; goto dump_it;
switch(flags & DN_RT_CNTL_MSK) { switch (flags & DN_RT_CNTL_MSK) {
case DN_RT_PKT_INIT: case DN_RT_PKT_INIT:
dn_dev_init_pkt(skb); dn_dev_init_pkt(skb);
break; break;
case DN_RT_PKT_VERI: case DN_RT_PKT_VERI:
dn_dev_veri_pkt(skb); dn_dev_veri_pkt(skb);
break; break;
} }
if (dn->parms.state != DN_DEV_S_RU) if (dn->parms.state != DN_DEV_S_RU)
goto dump_it; goto dump_it;
switch(flags & DN_RT_CNTL_MSK) { switch (flags & DN_RT_CNTL_MSK) {
case DN_RT_PKT_HELO: case DN_RT_PKT_HELO:
return NF_HOOK(NFPROTO_DECNET, NF_DN_HELLO, return NF_HOOK(NFPROTO_DECNET, NF_DN_HELLO,
skb, skb->dev, NULL, skb, skb->dev, NULL,
dn_route_ptp_hello); dn_route_ptp_hello);
case DN_RT_PKT_L1RT: case DN_RT_PKT_L1RT:
case DN_RT_PKT_L2RT: case DN_RT_PKT_L2RT:
return NF_HOOK(NFPROTO_DECNET, NF_DN_ROUTE, return NF_HOOK(NFPROTO_DECNET, NF_DN_ROUTE,
skb, skb->dev, NULL, skb, skb->dev, NULL,
dn_route_discard); dn_route_discard);
case DN_RT_PKT_ERTH: case DN_RT_PKT_ERTH:
return NF_HOOK(NFPROTO_DECNET, NF_DN_HELLO, return NF_HOOK(NFPROTO_DECNET, NF_DN_HELLO,
skb, skb->dev, NULL, skb, skb->dev, NULL,
dn_neigh_router_hello); dn_neigh_router_hello);
case DN_RT_PKT_EEDH: case DN_RT_PKT_EEDH:
return NF_HOOK(NFPROTO_DECNET, NF_DN_HELLO, return NF_HOOK(NFPROTO_DECNET, NF_DN_HELLO,
skb, skb->dev, NULL, skb, skb->dev, NULL,
dn_neigh_endnode_hello); dn_neigh_endnode_hello);
} }
} else { } else {
if (dn->parms.state != DN_DEV_S_RU) if (dn->parms.state != DN_DEV_S_RU)
...@@ -691,11 +691,11 @@ int dn_route_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type ...@@ -691,11 +691,11 @@ int dn_route_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type
skb_pull(skb, 1); /* Pull flags */ skb_pull(skb, 1); /* Pull flags */
switch(flags & DN_RT_PKT_MSK) { switch (flags & DN_RT_PKT_MSK) {
case DN_RT_PKT_LONG: case DN_RT_PKT_LONG:
return dn_route_rx_long(skb); return dn_route_rx_long(skb);
case DN_RT_PKT_SHORT: case DN_RT_PKT_SHORT:
return dn_route_rx_short(skb); return dn_route_rx_short(skb);
} }
} }
...@@ -1419,20 +1419,20 @@ static int dn_route_input_slow(struct sk_buff *skb) ...@@ -1419,20 +1419,20 @@ static int dn_route_input_slow(struct sk_buff *skb)
rt->dst.neighbour = neigh; rt->dst.neighbour = neigh;
rt->dst.lastuse = jiffies; rt->dst.lastuse = jiffies;
rt->dst.output = dn_rt_bug; rt->dst.output = dn_rt_bug;
switch(res.type) { switch (res.type) {
case RTN_UNICAST: case RTN_UNICAST:
rt->dst.input = dn_forward; rt->dst.input = dn_forward;
break; break;
case RTN_LOCAL: case RTN_LOCAL:
rt->dst.output = dn_output; rt->dst.output = dn_output;
rt->dst.input = dn_nsp_rx; rt->dst.input = dn_nsp_rx;
rt->dst.dev = in_dev; rt->dst.dev = in_dev;
flags |= RTCF_LOCAL; flags |= RTCF_LOCAL;
break; break;
default: default:
case RTN_UNREACHABLE: case RTN_UNREACHABLE:
case RTN_BLACKHOLE: case RTN_BLACKHOLE:
rt->dst.input = dst_discard; rt->dst.input = dst_discard;
} }
rt->rt_flags = flags; rt->rt_flags = flags;
......
...@@ -147,17 +147,18 @@ static void dn_rehash_zone(struct dn_zone *dz) ...@@ -147,17 +147,18 @@ static void dn_rehash_zone(struct dn_zone *dz)
old_divisor = dz->dz_divisor; old_divisor = dz->dz_divisor;
switch(old_divisor) { switch (old_divisor) {
case 16: case 16:
new_divisor = 256; new_divisor = 256;
new_hashmask = 0xFF; new_hashmask = 0xFF;
break; break;
default: default:
printk(KERN_DEBUG "DECnet: dn_rehash_zone: BUG! %d\n", old_divisor); printk(KERN_DEBUG "DECnet: dn_rehash_zone: BUG! %d\n",
case 256: old_divisor);
new_divisor = 1024; case 256:
new_hashmask = 0x3FF; new_divisor = 1024;
break; new_hashmask = 0x3FF;
break;
} }
ht = kcalloc(new_divisor, sizeof(struct dn_fib_node*), GFP_KERNEL); ht = kcalloc(new_divisor, sizeof(struct dn_fib_node*), GFP_KERNEL);
......
...@@ -69,15 +69,15 @@ static void dnrmg_send_peer(struct sk_buff *skb) ...@@ -69,15 +69,15 @@ static void dnrmg_send_peer(struct sk_buff *skb)
int group = 0; int group = 0;
unsigned char flags = *skb->data; unsigned char flags = *skb->data;
switch(flags & DN_RT_CNTL_MSK) { switch (flags & DN_RT_CNTL_MSK) {
case DN_RT_PKT_L1RT: case DN_RT_PKT_L1RT:
group = DNRNG_NLGRP_L1; group = DNRNG_NLGRP_L1;
break; break;
case DN_RT_PKT_L2RT: case DN_RT_PKT_L2RT:
group = DNRNG_NLGRP_L2; group = DNRNG_NLGRP_L2;
break; break;
default: default:
return; return;
} }
skb2 = dnrmg_build_message(skb, &status); skb2 = dnrmg_build_message(skb, &status);
......
...@@ -68,14 +68,15 @@ static struct ctl_table_header *dn_table_header = NULL; ...@@ -68,14 +68,15 @@ static struct ctl_table_header *dn_table_header = NULL;
static void strip_it(char *str) static void strip_it(char *str)
{ {
for(;;) { for(;;) {
switch(*str) { switch (*str) {
case ' ': case ' ':
case '\n': case '\n':
case '\r': case '\r':
case ':': case ':':
*str = 0; *str = 0;
case 0: /* Fallthrough */
return; case 0:
return;
} }
str++; str++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment