From eb2a08e762578bb86e0e6135c5808a0d82e91a8c Mon Sep 17 00:00:00 2001 From: joeyh Date: Sat, 25 Mar 2006 01:51:39 +0000 Subject: [PATCH] * ifdata: patch from its author to make it behave properly on big endian systems. Closes: #358860 --- debian/changelog | 2 ++ ifdata.c | 8 ++++++++ pee.1 | 5 +++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index b00e67d..bb4580e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ moreutils (0.8) UNRELEASED; urgency=low * Back to Mithandir's C sponge, now fixed. * tss.1, ifdata.1: typo fix. Closes: #358557, #358556 + * ifdata: patch from its author to make it behave properly on big endian + systems. Closes: #358860 -- Joey Hess Thu, 23 Mar 2006 03:45:30 -0500 diff --git a/ifdata.c b/ifdata.c index 1f1eb2a..92b68a6 100644 --- a/ifdata.c +++ b/ifdata.c @@ -64,11 +64,19 @@ struct if_stat { void print_quad_ipv4(unsigned int i) { +#if __BYTE_ORDER == __LITTLE_ENDIAN printf("%d.%d.%d.%d", i&0xff, (i&0xff00)>>8, (i&0xff0000)>>16, (i&0xff000000)>>24); +#else + printf("%d.%d.%d.%d", + (i&0xff000000)>>24, + (i&0xff0000)>>16, + (i&0xff00)>>8, + i&0xff); +#endif } void print_quad_ipv6(uint16_t *a) { diff --git a/pee.1 b/pee.1 index 019488f..b0faebf 100644 --- a/pee.1 +++ b/pee.1 @@ -5,7 +5,8 @@ pee \- tee standard input to pipes \fBpee\fR [\fB"command"\fR\&...] .SH DESCRIPTION pee is like tee -but for pipes. Each command is run and standard input is -copied into it, as well as being sent to stdout. +but for pipes. Each command is run and fed a copy of the +stadard input. The output of all commands is sent to +stdout. .SH "SEE ALSO" \fBtee\fR(1) -- 2.39.5