[PATCH 2/3] linux/ioctlent.sh: use `sort -u` rather than `sort|uniq`

Mike Frysinger vapier at gentoo.org
Fri Feb 20 17:56:49 UTC 2009


Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 linux/ioctlent.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/linux/ioctlent.sh b/linux/ioctlent.sh
index 479eed4..0258967 100644
--- a/linux/ioctlent.sh
+++ b/linux/ioctlent.sh
@@ -96,7 +96,7 @@ s/^\(.*\):[[:space:]]*#[[:space:]]*define[[:space:]]*\([A-Z0-9_]*\)[[:space:]]*_
 bases=$(sed -n \
        -e 's/.*_IOC_NONE.*,[[:space:]]*\([A-Z][A-Z0-9_]\+\)[[:space:]]*,[[:space:]]*\([A-Z][A-Z0-9_]\+\)[[:space:]+,].*/\1\n\2/p' \
        -e 's/.*_IOC_NONE.*,[[:space:]]*\([A-Z][A-Z0-9_]\+\)[[:space:]+,].*/\1/p' \
-       ioctls.h | sort | uniq)
+       ioctls.h | sort -u)
 for base in $bases ; do
 	echo "Looking for $base"
 	regexp="^[[:space:]]*#[[:space:]]*define[[:space:]]\+$base"
-- 
1.6.1.3





More information about the Strace-devel mailing list