Diff between e4f0c5582f1fe3451d5588243adba9de1ed68b80 and 3d7511210b065169fdc4d87471d24459ccb46eff

Changed Files

File Additions Deletions Status
tools/rctest.c +4 -4 modified

Full Patch

diff --git a/tools/rctest.c b/tools/rctest.c
index bdc1eb5..383d165 100644
--- a/tools/rctest.c
+++ b/tools/rctest.c
@@ -80,8 +80,8 @@ static bdaddr_t auto_bdaddr;
 static uint16_t uuid = 0x0000;
 static uint8_t channel = 10;
 
-static char *filename = NULL;
-static char *savefile = NULL;
+static const char *filename = NULL;
+static const char *savefile = NULL;
 static int save_fd = -1;
 
 static int master = 0;
@@ -798,11 +798,11 @@ int main(int argc, char *argv[])
 			break;
 
 		case 'B':
-			filename = strdup(optarg);
+			filename = optarg;
 			break;
 
 		case 'O':
-			savefile = strdup(optarg);
+			savefile = optarg;
 			break;
 
 		case 'N':