[IOT-1382] Fix MediaServer db file extension
authorAlex Kelley <alexke@microsoft.com>
Mon, 31 Oct 2016 21:23:02 +0000 (14:23 -0700)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Mon, 28 Nov 2016 23:27:26 +0000 (23:27 +0000)
Change-Id: I4fd66025d07e20c9d0b98424fb6e2f23636d6b15
Signed-off-by: Alex Kelley <alexke@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13901
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Pawel Winogrodzki <pawelwi@microsoft.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/examples/mediaserver.cpp

index 08184d0..849a42c 100644 (file)
@@ -502,9 +502,9 @@ void PrintUsage()
     cout << "    4 - Non-secure resource, GET slow response, notify all observers\n";
 }
 
-static FILE* client_open(const char* /*path*/, const char *mode)
+static FILE* client_open(const char* /*path*/, const charmode)
 {
-    return fopen("./oic_svr_db_server.json", mode);
+    return fopen("./oic_svr_db_server.dat", mode);
 }
 
 void playPause()