]> granicus.if.org Git - strace/commit
Convert do_printstat to a template function
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 28 Dec 2014 18:15:25 +0000 (18:15 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 8 Jan 2015 01:14:53 +0000 (01:14 +0000)
commitab21a9489f9b6cb61d462f8e47c41b507ea8b585
tree7eb3d4160db069a047498b6e9fc37d9872dac901
parentd01f0a85bca6a581d10b53ac07d00a9c6e5ed7b2
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.
Makefile.am
file.c
printstat.h [new file with mode: 0644]