From: munkyu.im Date: Wed, 27 Mar 2013 06:58:03 +0000 (+0900) Subject: exit: fix assert error X-Git-Tag: submit/tizen/20150527.025434~17^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4307f7ba5d01a743e1f6f6d91b97240b96061d6b;p=platform%2Fadaptation%2Femulator%2Femulator-daemon.git exit: fix assert error --- diff --git a/packaging/emuld.spec b/packaging/emuld.spec index d20a8be..4302219 100644 --- a/packaging/emuld.spec +++ b/packaging/emuld.spec @@ -1,6 +1,6 @@ #git:/slp/pkgs/e/emulator-daemon Name: emuld -Version: 0.2.29 +Version: 0.2.30 Release: 1 Summary: emuld is used for communication emulator between and ide. License: Apache diff --git a/src/emuld.c b/src/emuld.c index 2bca849..112f1fe 100644 --- a/src/emuld.c +++ b/src/emuld.c @@ -571,20 +571,6 @@ int powerdown_by_force() { struct timeval now; int poweroff_duration = POWEROFF_DURATION; - char *buf; - - /* Getting poweroff duration */ - buf = getenv("PWROFF_DUR"); - if(buf == NULL) - { - LOG("PWROFF_DUR is null"); - assert(0); - } - - if (strlen(buf) < 1024) - poweroff_duration = atoi(buf); - if (poweroff_duration < 0 || poweroff_duration > 60) - poweroff_duration = POWEROFF_DURATION; gettimeofday(&now, NULL); /* Waiting until power off duration and displaying animation */