commit | ab21a9489f9b6cb61d462f8e47c41b507ea8b585 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Sun Dec 28 18:15:25 2014 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Thu Jan 08 01:14:53 2015 +0000 |
tree | 7eb3d4160db069a047498b6e9fc37d9872dac901 | |
parent | d01f0a85bca6a581d10b53ac07d00a9c6e5ed7b2 [diff] [blame] |
Convert do_printstat to a template function * printstat.h: New file. * Makefile.am (strace_SOURCES): Add it. * file.c: Include "printstat.h". (do_printstat): Move to printstat.h, parametrize its name and struct stat.
diff --git a/Makefile.am b/Makefile.am index 5a852b8..bc7dc89 100644 --- a/Makefile.am +++ b/Makefile.am
@@ -64,6 +64,7 @@ personality.c \ prctl.c \ printmode.c \ + printstat.h \ process.c \ process_vm.c \ ptp.c \