diff --git a/examples/object-events/event-test.c b/examples/object-events/event-test.c index e3f03309058bfcd8f5a3d8b5961a75546bdd3b03..63629c2ae091bf8d7416e06be24d27b6c504ffc7 100644 --- a/examples/object-events/event-test.c +++ b/examples/object-events/event-test.c @@ -579,12 +579,6 @@ static void myFreeFunc(void *opaque) /* main test functions */ -void usage(const char *pname) -{ - printf("%s uri\n", pname); -} - - static void stop(int sig) { printf("Exiting on signal %d\n", sig); @@ -622,7 +616,7 @@ int main(int argc, char **argv) action_stop.sa_handler = stop; if (argc > 1 && STREQ(argv[1], "--help")) { - usage(argv[0]); + printf("%s uri\n", argv[0]); goto cleanup; }