[hackers] [scc] Fix small typos (pancake thanks again!) || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 22 Jul 2015 18:29:13 +0200 (CEST)

commit f9b9be337e76a5a4c16d48639e4a3379d9fdd639
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Jul 22 18:28:28 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Jul 22 18:28:28 2015 +0200

    Fix small typos (pancake thanks again!)

diff --git a/cc1/code.c b/cc1/code.c
index 4610876..6617ef4 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -206,7 +206,7 @@ emitconst(Node *np)
                 break;
         default:
                 /* TODO: Handle other kind of constants */
- abort;
+ abort();
         }
 }
 
diff --git a/cc1/lex.c b/cc1/lex.c
index 1f83071..bc4c5d8 100644
--- a/cc1/lex.c
+++ b/cc1/lex.c
_AT_@ -457,7 +457,7 @@ dot(void)
 {
         char c;
 
- if (c = *input->p != '.')
+ if ((c = *input->p) != '.')
                 return '.';
         if ((c = *++input->p) != '.')
                 error("incorrect token '..'");
Received on Wed Jul 22 2015 - 18:29:13 CEST

This archive was generated by hypermail 2.3.0 : Wed Jul 22 2015 - 18:36:11 CEST