commit d342f5e873937e6eada0c0b3ef39efad685935a0
parent 0b0ff5596418b4f4fcac145e99ffd419afa81f37
Author: Nihal Jere <nihal@nihaljere.xyz>
Date: Wed, 29 Dec 2021 21:05:11 -0600
replace strncmp
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/parse.c b/parse.c
@@ -2,7 +2,6 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
-#include <string.h>
#include "nooc.h"
#include "parse.h"
@@ -310,7 +309,7 @@ parsetype()
struct mapkey key;
union mapval val;
- if (strncmp(tok->slice.data, "proc", 3) == 0) {
+ if (slice_cmplit(&tok->slice, "proc") == 0) {
type.class = TYPE_PROC;
tok = tok->next;