summaryrefslogtreecommitdiff
path: root/src/export/map_branches.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2019-01-27 21:20:11 +0100
committerDirk Engling <erdgeist@erdgeist.org>2019-01-27 21:20:11 +0100
commit5af61e439210270e391c24ad111a0da14ecc549e (patch)
tree40547d6abead833a47b4335e3da82ad79534bfa1 /src/export/map_branches.c
parenta8b63cbb4a04cd97b2bd2864d8e8a5b61c51dc99 (diff)
C99
Diffstat (limited to 'src/export/map_branches.c')
-rw-r--r--src/export/map_branches.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/export/map_branches.c b/src/export/map_branches.c
index e4dd101..850e5c1 100644
--- a/src/export/map_branches.c
+++ b/src/export/map_branches.c
@@ -53,7 +53,8 @@ int main( int argc, char ** args )
53 while ( (ll = getline( &input, &input_length, stdin ) ) >= 0 ) { 53 while ( (ll = getline( &input, &input_length, stdin ) ) >= 0 ) {
54 char *codes = input; 54 char *codes = input;
55 branchen_code *bc; 55 branchen_code *bc;
56 for (int multiple = 0;; ++multiple) { 56 int multiple;
57 for (multiple = 0;; ++multiple) {
57 long code = strtoul(codes, &end_p, 10); 58 long code = strtoul(codes, &end_p, 10);
58 if (codes == end_p) break; 59 if (codes == end_p) break;
59 bc = (branchen_code*)bsearch((void *)(uintptr_t)code, g_codes, g_code_count, sizeof(branchen_code), find_code); 60 bc = (branchen_code*)bsearch((void *)(uintptr_t)code, g_codes, g_code_count, sizeof(branchen_code), find_code);