source: remove unused function
[sdk/target/sdbd.git] / src / sdktools.c
index f24bccc..ddf4b18 100644 (file)
 #include "sdktools.h"
 
 #define  TRACE_TAG  TRACE_SERVICES
+#include "log.h"
+
 #include "sdb.h"
 #include "sdktools.h"
 #include "strutils.h"
-#include "fileutils.h"
 #include "utils.h"
 
 struct sudo_command root_commands[] = {
@@ -32,10 +33,10 @@ struct sudo_command root_commands[] = {
         }
     },
     /* end */
-    { NULL, NULL, NULL }
+    { NULL, NULL, {NULL} }
 };
 
-static struct command_suffix
+struct command_suffix
 {
     const char *name; // comments for human
     const char *suffix; //pattern
@@ -88,7 +89,7 @@ static int get_application_install_path(char* pkg_path) {
     while(ret_str[--len]=='\n');
     ret_str[len + 1] = '\0';
 
-    if (sscanf(ret_str, "Tizen Application Installation Path: %s", pkg_path) != 1) {
+    if (sscanf(ret_str, "Tizen Application Installation Path: %4095s", pkg_path) != 1) {
         D("failed : parsing fail (str:%s)\n", ret_str);
         return 0;
     }