1
0
forked from bonsai/harakit

Makefile: better deps; fop(1), hru(1), strerror(3): changed strerror wrapper function name

This commit is contained in:
Emma Tebibyte 2024-03-02 10:16:32 -07:00
parent 898044cd43
commit c392dbc680
Signed by untrusted user: emma
GPG Key ID: 06FA419A1698C270
4 changed files with 8 additions and 8 deletions

View File

@ -58,7 +58,7 @@ build/o/libstrerror.rlib: build src/strerror.rs
$(RUSTC) $(RUSTFLAGS) --crate-type=lib -o $@ \ $(RUSTC) $(RUSTFLAGS) --crate-type=lib -o $@ \
src/strerror.rs src/strerror.rs
build/o/libsysexits.rlib: build build/o/libsysexits.rlib: build include/sysexits.h
# bandage solution until bindgen(1) gets stdin support # bandage solution until bindgen(1) gets stdin support
printf '#define EXIT_FAILURE 1\n' | cat - include/sysexits.h \ printf '#define EXIT_FAILURE 1\n' | cat - include/sysexits.h \
> build/include/sysexits.h > build/include/sysexits.h

View File

@ -27,7 +27,7 @@ extern crate strerror;
extern crate sysexits; extern crate sysexits;
use getopt::{ Opt, Parser }; use getopt::{ Opt, Parser };
use strerror::c_error; use strerror::raw_message;
use sysexits::{ EX_DATAERR, EX_IOERR, EX_UNAVAILABLE, EX_USAGE }; use sysexits::{ EX_DATAERR, EX_IOERR, EX_UNAVAILABLE, EX_USAGE };
fn main() { fn main() {
@ -77,7 +77,7 @@ fn main() {
.stdout(Stdio::piped()) .stdout(Stdio::piped())
.spawn() .spawn()
.unwrap_or_else( |e| { .unwrap_or_else( |e| {
eprintln!("{}: {}: {}", argv[0], argv[command_arg], c_error(e)); eprintln!("{}: {}: {}", argv[0], argv[command_arg], raw_message(e));
exit(EX_UNAVAILABLE); exit(EX_UNAVAILABLE);
}); });