From 29859bb930c73141a0f8a9f56948cbcef5697698 Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Thu, 28 Apr 2016 14:58:56 +0200
Subject: [PATCH] -r option becomes -p, it's more "natural"

---
 common/utils/T/tracer/remote.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/utils/T/tracer/remote.c b/common/utils/T/tracer/remote.c
index 367772d721..c22cc1bf55 100644
--- a/common/utils/T/tracer/remote.c
+++ b/common/utils/T/tracer/remote.c
@@ -10,7 +10,7 @@
 #include "textlog.h"
 #include "../T_defs.h"
 
-#define DEFAULT_REMOTE_PORT 2020
+#define DEFAULT_REMOTE_PORT 2021
 
 int get_connection(char *addr, int port)
 {
@@ -54,7 +54,7 @@ void usage(void)
 "                              note: you may pass several -on/-off/-ON/-OFF,\n"
 "                                    they will be processed in order\n"
 "                                    by default, all is off\n"
-"    -r <port>                 remote side: use given port (default %d)\n",
+"    -p <port>                 use given port (default %d)\n"
   DEFAULT_REMOTE_PORT
   );
   exit(1);
@@ -112,7 +112,7 @@ int main(int n, char **v)
     if (!strcmp(v[i], "-h") || !strcmp(v[i], "--help")) usage();
     if (!strcmp(v[i], "-d"))
       { if (i > n-2) usage(); database_filename = v[++i]; continue; }
-    if (!strcmp(v[i], "-r"))
+    if (!strcmp(v[i], "-p"))
       { if (i > n-2) usage(); port = atoi(v[++i]); continue; }
     if (!strcmp(v[i], "-on")) { if (i > n-2) usage();
       on_off_name[on_off_n]=v[++i]; on_off_action[on_off_n++]=1; continue; }
-- 
GitLab