[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] better usage() for svnserve

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-07-29 06:32:55 CEST

Colin Watson wrote:

>On Mon, Jul 28, 2003 at 02:06:54PM -0400, pll@lanminds.com wrote:
>
>
>> static void usage(const char *progname)
>> {
>>+ char *opt_d = "\t-d\t\tRun as a daemon\n";
>>+ char *opt_t = "\t-t\t\tRun in tunnel mode\n";
>>+ char *opt_X = "\t-X\t\tListen once and exit\n";
>>+ char *opt_r = "\t-r path\t\tRun with \"path\" set as file system root\n";
>>+ char *opt_R = "\t-R\t\tRun in read-only mode\n";
>>+ char *opt_T = "\t-T\t\tRun in handling mode\n";
>>+
>>
>>
>
>FWIW, the correct type for a literal string is 'const char *'.
>
Escept that in this case it would be 'static const char[]', if we didn't
alreadz have a mechanism that handles options and help messages.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 29 06:33:48 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.