Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/emotion

Dir     : e17/libs/emotion/src/bin


Modified Files:
        emotion_test_main.c 


Log Message:
Use %f with doubles.
Add string.h for strcmp()
Remove unused variables.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/emotion/src/bin/emotion_test_main.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- emotion_test_main.c 5 Sep 2005 11:00:22 -0000       1.9
+++ emotion_test_main.c 5 Sep 2005 16:30:09 -0000       1.10
@@ -14,6 +14,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 
 typedef struct _Frame_Data Frame_Data;
 
@@ -613,7 +614,7 @@
 video_obj_signal_jump_cb(void *data, Evas_Object *o, const char *emission, 
const char *source)
 {
    Evas_Object *ov;
-   double pos, len;
+   double len;
    double x, y;
    
    ov = data;
@@ -634,7 +635,7 @@
    edje_object_part_drag_value_get(o, source, &x, &y);
    spd = 255 * y;
    evas_object_color_set(ov, 255, 255, 255, spd);
-   snprintf(buf, sizeof(buf), "%i", spd);
+   snprintf(buf, sizeof(buf), "%.0f", spd);
    edje_object_part_text_set(o, "video_speed_txt", buf);
 }
 
@@ -805,7 +806,6 @@
 int
 main(int argc, char **argv)
 {
-   char *file;
    int i;
    
    if (main_start(argc, argv) < 1) return -1;




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to