Pārlūkot izejas kodu

Fix debug build

Reported by ghubcoder in #2, debug builds were broken due to
incorrect MAX_NARG macro - it should be COMM_MAX_NARG.
Brian Starkey 2 gadus atpakaļ
vecāks
revīzija
e91aa0b747
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      tcp_comm.c

+ 2
- 2
tcp_comm.c Parādīt failu

@@ -531,8 +531,8 @@ struct tcp_comm_ctx *tcp_comm_new(const struct comm_command *const *cmds,
531 531
 
532 532
 	unsigned int i;
533 533
 	for (i = 0; i < n_cmds; i++) {
534
-		assert(cmds[i]->nargs <= MAX_NARG);
535
-		assert(cmds[i]->resp_nargs <= MAX_NARG);
534
+		assert(cmds[i]->nargs <= COMM_MAX_NARG);
535
+		assert(cmds[i]->resp_nargs <= COMM_MAX_NARG);
536 536
 	}
537 537
 
538 538
 	ctx->cmds = cmds;

Notiek ielāde…
Atcelt
Saglabāt