From ddda04d12faae5a19e6bc6489647b902a0b38e9c Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Tue, 13 Mar 2012 15:56:43 +0400 Subject: [PATCH] replace command line arguments parser with built-in getopt code --- yasnd.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/yasnd.c b/yasnd.c index 6c0dd22..6663f28 100644 --- a/yasnd.c +++ b/yasnd.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include "yasnd.h" @@ -373,12 +374,21 @@ void signal_handler(int signum) void arg_parse(int argc, char *argv[]) { - for (int i=0;i