Skip to content

Commit f514ece

Browse files
roycewilliamssolardiz
authored andcommitted
attempted fix of --enable-ztex
Makefile.in: move .PHONY below SUBDIRS so it can expand. john.c: use %ld for ztex_detected_list->count (long).
1 parent adb2118 commit f514ece

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ fmt_registers.h: .plugin_fmt_list
263263
$(CC) -DFMT_REGISTERS_H -E -P $(CFLAGS) $(filter-out opencl_%_fmt_plug.c, $(wildcard *_fmt_plug.c)) | grep -F "john_register_one" | $(SORT) -f > $@ || true
264264
$(CC) -DFMT_REGISTERS_H -E -P $(CFLAGS) $(wildcard opencl_*_fmt_plug.c) | grep -F "john_register_one" | $(SORT) -f >> $@ || true
265265

266-
.PHONY: subdirs $(SUBDIRS)
267-
268266
SUBDIRS = mbedtls secp256k1 ed25519-donna poly1305-donna @ZTEX_SUBDIRS@
269267

268+
.PHONY: subdirs $(SUBDIRS)
269+
270270
subdirs: $(SUBDIRS)
271271

272272
$(SUBDIRS):

src/john.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ static void john_load(void)
12241224
if (ztex_detected_list->count % options.fork) {
12251225
fprintf(stderr, "Number of ZTEX devices must be "
12261226
"a multiple of forks. "
1227-
"Suggesting to use \"--fork=%d\".\n",
1227+
"Suggesting to use \"--fork=%ld\".\n",
12281228
ztex_detected_list->count);
12291229
error();
12301230
}

0 commit comments

Comments
 (0)