From 9bfb9eedcddf3ab4e79532e863cf16c5ff381090 Mon Sep 17 00:00:00 2001 From: sheldonh Date: Thu, 26 Jul 2001 11:02:39 +0000 Subject: Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The definitions are more readable, and it's possible that they're more portable to pathalogical platforms. Submitted by: David Hill --- libexec/rtld-elf/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec/rtld-elf/debug.h') diff --git a/libexec/rtld-elf/debug.h b/libexec/rtld-elf/debug.h index 2600651..04314a9 100644 --- a/libexec/rtld-elf/debug.h +++ b/libexec/rtld-elf/debug.h @@ -53,7 +53,7 @@ extern int debug; #define assert(cond) ((cond) ? (void) 0 : \ (msg("ld-elf.so.1: assert failed: " __FILE__ ":" \ __XSTRING(__LINE__) "\n"), abort())) -#define msg(s) write(1, s, strlen(s)) +#define msg(s) write(STDOUT_FILENO, s, strlen(s)) #define trace() msg("ld-elf.so.1: " __XSTRING(__LINE__) "\n") #endif /* DEBUG_H */ -- cgit v1.1