From d5f953fed99a811e2a815bc247558c2e34bcc8ec Mon Sep 17 00:00:00 2001 From: Christian Riesch Date: Tue, 27 Mar 2012 11:50:54 +0200 Subject: [PATCH] Output an error message when no interface is specified Signed-off-by: Christian Riesch --- ptp4l.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ptp4l.c b/ptp4l.c index 01e3966..2eca0ef 100644 --- a/ptp4l.c +++ b/ptp4l.c @@ -151,6 +151,7 @@ int main(int argc, char *argv[]) } if (!nports) { + fprintf(stderr, "no interface specified\n"); usage(progname); return -1; }