exit: fix assert error
authormunkyu.im <munkyu.im@samsung.com>
Wed, 27 Mar 2013 06:58:03 +0000 (15:58 +0900)
committermunkyu.im <munkyu.im@samsung.com>
Wed, 27 Mar 2013 06:58:03 +0000 (15:58 +0900)
packaging/emuld.spec
src/emuld.c

index d20a8beba605e21ceb49178e95274cedb7dbec37..4302219051c89a9f2766dc2a33ff43de1306cb76 100644 (file)
@@ -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
index 2bca8492c5c24b0a60caa81246665d75048d04ac..112f1fe415fa071ab5c1ec0f8439caba2941c9ff 100644 (file)
@@ -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 */