commit | 26d1b1eaa861ec33d2c671acc9c0ccb867042cb8 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <dvlasenk@redhat.com> | Mon Aug 15 12:24:14 2011 +0200 |
committer | Denys Vlasenko <dvlasenk@redhat.com> | Mon Aug 15 12:24:14 2011 +0200 |
tree | 6137717ba76e6d4075e51efaf7a36da3c6160b9d | |
parent | 5bd67c86a93c658d258348e8f14af94fd45cbeb6 [diff] |
Slight optimization and cleanup in trace() * strace.c (trace): Do not recalculate "cflag ? &ru : NULL" again and again. Do not clear errno unnecessarily. Consistently check wait errors as pid < 0, not pid == -1. Indent ifdefs for better readability. Remove comments after endif if ifdef/endif block is really tiny. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>