From b0a2ab5729c53bc0007e7d53c44785f569be9a84 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Tue, 15 Dec 2020 23:11:11 +0100 Subject: [PATCH] A FIXME: The number of nodes is fixed to 4! Better make this flexible, but how to detect this number safely? --- src/frontend/inp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index 9b0453521..b0f980f0f 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -2477,7 +2477,7 @@ static void rem_unused_mos_models(struct card* deck) { } /* what is the device's model name? */ char* mname = nexttok(curr_line); - int nonodes = 4; + int nonodes = 4; /* FIXME: this is a hack! How to really detect the number of nodes? */ int jj; for (jj = 0; jj < nonodes; jj++) { mname = nexttok(mname);