subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1335021 - /subversion/trunk/subversion/svnserve/main.c
Date Mon, 07 May 2012 13:50:48 GMT
Author: stsp
Date: Mon May  7 13:50:48 2012
New Revision: 1335021

URL: http://svn.apache.org/viewvc?rev=1335021&view=rev
Log:
Follow-up to r1334953:

* subversion/svnserve/main.c: Use APR_SRINGIFY instead of custom macros.

Suggested by: gstein

Modified:
    subversion/trunk/subversion/svnserve/main.c

Modified: subversion/trunk/subversion/svnserve/main.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnserve/main.c?rev=1335021&r1=1335020&r2=1335021&view=diff
==============================================================================
--- subversion/trunk/subversion/svnserve/main.c (original)
+++ subversion/trunk/subversion/svnserve/main.c Mon May  7 13:50:48 2012
@@ -150,11 +150,6 @@ void winservice_notify_stop(void)
 #define SVNSERVE_OPT_CACHE_REVPROPS  267
 #define SVNSERVE_OPT_SINGLE_CONN     268
 
-/* Helper macros to stringify ra_svn's default port number. */
-#define SVNSERVE_PORT(p) SVNSERVE_PORT_STR(p)
-#define SVNSERVE_PORT_STR(p) #p
-
-
 static const apr_getopt_option_t svnserve__options[] =
   {
     {"daemon",           'd', 0, N_("daemon mode")},
@@ -172,11 +167,11 @@ static const apr_getopt_option_t svnserv
      N_("read configuration from file ARG")},
     {"listen-port",       SVNSERVE_OPT_LISTEN_PORT, 1,
 #ifdef WIN32
-     N_("listen port. The default port is " SVNSERVE_PORT(SVN_RA_SVN_PORT) ".\n"
+     N_("listen port. The default port is " APR_STRINGIFY(SVN_RA_SVN_PORT) ".\n"
         "                             "
         "[mode: daemon, service, listen-once]")},
 #else
-     N_("listen port. The default port is " SVNSERVE_PORT(SVN_RA_SVN_PORT) ".\n"
+     N_("listen port. The default port is " APR_STRINGIFY(SVN_RA_SVN_PORT) ".\n"
         "                             "
         "[mode: daemon, listen-once]")},
 #endif



Mime
View raw message