git » libfiu » commit 59ea041

preload/posix: Sort and remove duplicates of errnos in extract_from_man

author Alberto Bertogli
2009-07-12 21:26:09 UTC
committer Alberto Bertogli
2009-07-12 21:26:09 UTC
parent c7e1700e0e7cf6504b72db482e5b2dd417e64f23

preload/posix: Sort and remove duplicates of errnos in extract_from_man

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

preload/posix/utils/extract_from_man +2 -2

diff --git a/preload/posix/utils/extract_from_man b/preload/posix/utils/extract_from_man
index 00b65f0..7e3d1bf 100755
--- a/preload/posix/utils/extract_from_man
+++ b/preload/posix/utils/extract_from_man
@@ -158,7 +158,7 @@ if __name__ == '__main__':
 		print '\ton error:', ' || '.join(on_error)
 
 	if errnos:
-		print '\tvalid errnos:', wrap(' '.join(errnos), 60,
-				indent = 2)
+		print '\tvalid errnos:', wrap(' '.join(sorted(set(errnos))),
+				60, indent = 2)