Stefan Knoblich f9d0e249a1 freeswitch: Rework option handling in main() and other clean ups.
Use a chain of "else if" statements, drop known_opt completely.
Added bonus: We stop trying to parse option arguments as (possible) options.

Arguments of -u/-g and path options (-conf) now check whether their argument
starts with a dash ('-') and error out in case it does (= next option, not a valid argument).

Use PATH_MAX for everything that stores files / directories.

Use switch_bool_t and SWITCH_TRUE/_FALSE for boolean variables.

Use EXIT_SUCCESS/_FAILURE for exit() calls.

Get rid of excessive indenting (especially in the win32 parts of main()).

NOTE: Win32 parts untested.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:23 +02:00
2012-07-05 14:27:32 -05:00
2009-02-11 02:53:31 +00:00
2012-06-25 08:55:48 +00:00
2012-07-10 09:28:26 -07:00
2009-02-13 23:33:36 +00:00
2008-05-14 20:39:43 +00:00
2009-12-17 18:33:45 +00:00
2012-07-03 20:04:37 -05:00
2010-04-01 21:00:45 -04:00
2012-05-28 16:35:00 +00:00
2012-06-14 22:47:21 +00:00
2012-07-02 17:46:21 -04:00
2012-07-06 17:54:21 -05:00
doh
2012-07-05 14:45:11 -05:00
2009-10-02 14:44:16 +00:00
2012-05-15 10:20:52 -05:00
2010-01-23 20:19:18 +00:00
2011-07-12 14:35:53 -05:00
2009-11-18 19:42:00 +00:00
2006-12-17 01:01:09 +00:00
2012-07-05 14:27:32 -05:00
add
2011-10-21 10:15:15 -05:00
Description
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unl
Multiple Licenses 217 MiB
Languages
C 65.2%
C++ 20.8%
JavaScript 4.8%
Assembly 2%
Makefile 1%
Other 5.4%