[hackers] [scc] [libc] Remove default case in atoi() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 25 Feb 2017 05:24:58 +0100 (CET)

commit ed6c03dab33900c8555d6f6b24004fb5fa0c0913
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Feb 25 05:24:23 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Feb 25 05:24:23 2017 +0100

    [libc] Remove default case in atoi()
    
    It does nothing.

diff --git a/libc/src/atoi.c b/libc/src/atoi.c
index 6619cf1..b484e1e 100644
--- a/libc/src/atoi.c
+++ b/libc/src/atoi.c
_AT_@ -16,8 +16,6 @@ atoi(const char *s)
                 sign = -1;
         case '+':
                 ++s;
- default:
- break;
         }
 
         for (n = 0; isdigit(*s); ++s)
Received on Sat Feb 25 2017 - 05:24:58 CET

This archive was generated by hypermail 2.3.0 : Sat Feb 25 2017 - 05:36:19 CET