From 3e8efba5d8c9d9cbfe0f6d965751039db10ae46b Mon Sep 17 00:00:00 2001 From: Aleksei Vereshchagin Date: Wed, 5 Sep 2018 19:29:13 +0300 Subject: [PATCH] Remove appid option --- README.md | 2 -- profctl.c | 11 +---------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/README.md b/README.md index 74be008..d214064 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,6 @@ profctl [options...] [command [args]] ### Options -* `-a`, `--appid=ID` - Tizen Application ID * `-p, --pipe=NAME` name of pipe file * `-e, --exec=NAME` diff --git a/profctl.c b/profctl.c index 5b42925..74d7fdb 100644 --- a/profctl.c +++ b/profctl.c @@ -37,7 +37,6 @@ static int stat_period_usec = 500000; // 0.5 seconds static struct termios sterm; #endif /* TIZEN */ -static char *appid = NULL; static int app_pid = -1; static int cmd_pid = -1; static int cmd_idx = -1; @@ -74,7 +73,6 @@ int is_running(int pid) } static struct option long_options[] = { - {"appid", required_argument, 0, 'a'}, {"pipe", required_argument, 0, 'p'}, {"exec", required_argument, 0, 'e'}, {"error", required_argument, 0, 'o'}, @@ -213,7 +211,7 @@ static int process_option(int argc, char **argv) int option_index; int result = -1; - result = getopt_long(argc, argv, "-a:p:ve:o:it:wc:d:s:E::", + result = getopt_long(argc, argv, "-p:ve:o:it:wc:d:s:E::", long_options, &option_index); if (result == 1) { @@ -236,7 +234,6 @@ static int process_option(int argc, char **argv) } switch (result) { - case 'a': CheckValue(&appid, "appid"); break; case 'p': CheckValue(&pname, "pipe name"); break; case 'e': CheckValue(&ename, "exe name"); break; case 'o': CheckValue(&oname, "error name"); break; @@ -606,12 +603,6 @@ int main(int argc, char **argv) while (!process_option(argc, argv)); atexit(finish); -#if TIZEN - if (appid == NULL) { - log_error("Unknown app id"); - exit(1); - } -#endif /* TIZEN */ if (oname == NULL) { oname = "/tmp/profctl.log"; -- 2.7.4