manual-backtrace: use proper prototypes, and make functions static

Otherwise this will fail to compile with our default Autotools
compiler warnings.
This commit is contained in:
Simon McVittie 2015-11-17 15:32:43 +00:00
parent a7cc817895
commit a12c9cebb7

View file

@ -28,17 +28,20 @@
#include <stdio.h>
void test2()
static void
test2 (void)
{
_dbus_print_backtrace();
}
void test1()
static void
test1 (void)
{
test2();
}
void test()
static void
test (void)
{
test1();
}