msuraev has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmo-sccp/+/29086 )

Change subject: cosmetic: improve usage help of example code
......................................................................

cosmetic: improve usage help of example code

* document -C option for example server
* move misplaced comma
* drop empty #define from example code

Change-Id: I342dc227afbfe6c3540eb3285677c568d2fe3166
---
M examples/sccp_demo_user.c
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Jenkins Builder: Verified
  neels: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve



diff --git a/examples/sccp_demo_user.c b/examples/sccp_demo_user.c
index 1a4ebac..df6c9af 100644
--- a/examples/sccp_demo_user.c
+++ b/examples/sccp_demo_user.c
@@ -105,7 +105,6 @@
 #define DEFAULT_LOCAL_PORT_CLIENT      M3UA_PORT
 #define DEFAULT_REMOTE_PORT_CLIENT     DEFAULT_LOCAL_PORT_SERVER
 #define DEFAULT_REMOTE_PORT_SERVER     DEFAULT_LOCAL_PORT_CLIENT
-#define DEFAULT_REMOTE_PORT_SERVER_STR DEFAULT_LOCAL_PORT_CLIENT_STR
 #define DEFAULT_PC_SERVER      1
 #define DEFAULT_PC_CLIENT      23

@@ -116,13 +115,14 @@
                        "Options:\n"
                        "  -p: protocol to use (m3ua, sua, ipa; default is 
ipa)\n"
                        "  -c: Run in client mode (default is server mode)\n"
+                       "  -C filename  The config file to use\n"
                        "  -l: local IP address and SCTP port (default is %s:%d 
in server mode,\n"
                        "                                       %s:%d in client 
mode)\n"
                        "  -r: remote IP address and SCTP port (default is 
%s:%d in server mode,\n"
                        "                                       %s:%d in client 
mode)\n"
                        "  -L: local point code (default is %d in server mode, 
%d in client mode)\n"
-                       "  -R: remote point code (default is %d in server mode, 
%d in client mode)\n",
-                       "  -d: LOGMASK (libosmocore log mask string, e.g. -d 
DLINP,1:DLSS7,2)\n"
+                       "  -R: remote point code (default is %d in server mode, 
%d in client mode)\n"
+                       "  -d: LOGMASK (libosmocore log mask string, e.g. -d 
DLINP,1:DLSS7,2)\n",
                        DEFAULT_LOCAL_ADDRESS_SERVER, DEFAULT_LOCAL_PORT_SERVER,
                        DEFAULT_LOCAL_ADDRESS_CLIENT, DEFAULT_LOCAL_PORT_CLIENT,
                        DEFAULT_REMOTE_ADDRESS_SERVER, 
DEFAULT_REMOTE_PORT_SERVER,



9 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted 
one.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/29086
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I342dc227afbfe6c3540eb3285677c568d2fe3166
Gerrit-Change-Number: 29086
Gerrit-PatchSet: 10
Gerrit-Owner: msuraev <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: msuraev <[email protected]>
Gerrit-Reviewer: neels <[email protected]>
Gerrit-MessageType: merged

Reply via email to