@@ -31,7 +31,8 @@ $(BPROMPT_YACC): parse.y
$(BPROMPT): $(BPROMPT_OBJS) $(BPROMPT_LEX) $(BPROMPT_YACC)
$(CC) -o ${.TARGET} ${.ALLSRC} -O3 -fPIE $(LDFLAGS)
-.o:
+SUFFIXES: .c .o
+.c.o:
$(CC) -o ${.TARGET} $(CFLAGS) -c ${.IMPSRC}
clean:
@@ -145,7 +145,7 @@ static void showmem()
/* data */
ssize_t total = pread(fd, buf, l, 4);
printf("%zu:\t %s", total, buf);
- free(buf);
+ dallocx(buf, 0);
} else {
warn("malloc");
}