2 Commits

Author SHA1 Message Date
DTB
9390811b24 Makefile: eep: update recipe 2024-08-21 22:03:07 -06:00
DTB
b7fe7294c6 eep(1): comment why u64 number 2024-07-15 15:45:50 -06:00
2 changed files with 2 additions and 4 deletions

View File

@@ -121,9 +121,7 @@ build/bin/scrut: src/scrut.c build
.PHONY: eep
eep: build/bin/eep
build/bin/eep: src/eep.rs build rustlibs
$(RUSTC) $(RUSTFLAGS) \
--extern sysexits=build/o/libsysexits.rlib \
-o $@ src/eep.rs
$(RUSTC) $(RUSTFLAGS) -o $@ src/eep.rs
.PHONY: str
str: build/bin/str

View File

@@ -36,7 +36,7 @@ fn main() -> ExitCode {
if argv.len() == 2 {
if let Ok(s) = argv[1].parse::<u64>() {
sleep(Duration::from_secs(s));
sleep(Duration::from_secs(s)); /* from_secs needs u64 */
ExitCode::SUCCESS
} else {
usage(&argv[0])