From 07c3ce02bedaac6077b8f041c319ce595a875e2e Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Thu, 8 Mar 2018 15:52:48 -0700
Subject: [PATCH] Fix build

---
 src/ctype/src/lib.rs | 2 +-
 tests/ctype.c        | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/ctype/src/lib.rs b/src/ctype/src/lib.rs
index 19ee5e1a..66d49fb5 100644
--- a/src/ctype/src/lib.rs
+++ b/src/ctype/src/lib.rs
@@ -73,7 +73,7 @@ pub extern "C" fn isblank(c: c_int) -> c_int {
 
 #[no_mangle]
 /// The comment in musl:
-/// `/* nonsense function that should NEVER be used! */`
+/// /* nonsense function that should NEVER be used! */
 pub extern "C" fn toascii(c: c_int) -> c_int {
     c & 0x7f
 }
diff --git a/tests/ctype.c b/tests/ctype.c
index a8e9dc10..76b68195 100644
--- a/tests/ctype.c
+++ b/tests/ctype.c
@@ -26,8 +26,9 @@ size_t num_test_cases = sizeof(test_cases)/sizeof(struct test_case);
         printf("Unexpected result: " #fn "('%c') != %d\n", tc.c, tc.fn); \
     }
 int main(int argc, char* argv[]) {
+    int i;
     int retval = 0;
-    for(int i = 0; i < num_test_cases; ++i) {
+    for(i = 0; i < num_test_cases; ++i) {
         struct test_case tc = test_cases[i];
         CHECK_TEST(tc, isalnum, retval);
         CHECK_TEST(tc, isalpha, retval);
-- 
GitLab