summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-16 21:42:17 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-30 20:19:07 +0900
commit38d468fc612a1b2f3af01a182fd246f6b82b16a0 (patch)
treea0274c7d268c33916b62302d4b768cb854253c83
parent164ebd4c6755f3617dec3611b4a8f26ea743a614 (diff)
remove warngings
-rw-r--r--src/bin/media.c3
-rw-r--r--src/bin/termio.c1
-rw-r--r--src/bin/tycat.c2
-rw-r--r--src/bin/tyls.c32
4 files changed, 4 insertions, 34 deletions
diff --git a/src/bin/media.c b/src/bin/media.c
index 697ef83..da139fc 100644
--- a/src/bin/media.c
+++ b/src/bin/media.c
@@ -1034,6 +1034,9 @@ _url_compl_cb(void *data, int type __UNUSED__, void *event_info)
1034 _type_scale_init(obj); 1034 _type_scale_init(obj);
1035 else if (_is_fmt(sd->src, extn_edj)) 1035 else if (_is_fmt(sd->src, extn_edj))
1036 _type_edje_init(obj); 1036 _type_edje_init(obj);
1037 // FIXME: handle audio specially
1038 else if (_is_fmt(sd->src, extn_aud))
1039 _type_mov_init(obj);
1037 else if (_is_fmt(sd->src, extn_mov)) 1040 else if (_is_fmt(sd->src, extn_mov))
1038 _type_mov_init(obj); 1041 _type_mov_init(obj);
1039 evas_object_raise(sd->o_busy); 1042 evas_object_raise(sd->o_busy);
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 052d205..ee2f486 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -3059,7 +3059,6 @@ _smart_cb_mouse_in(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__,
3059static void 3059static void
3060_smart_cb_mouse_out(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__) 3060_smart_cb_mouse_out(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
3061{ 3061{
3062 Evas_Object *o;
3063 Termio *sd; 3062 Termio *sd;
3064 3063
3065 sd = evas_object_smart_data_get(data); 3064 sd = evas_object_smart_data_get(data);
diff --git a/src/bin/tycat.c b/src/bin/tycat.c
index 9ef2222..71c2f17 100644
--- a/src/bin/tycat.c
+++ b/src/bin/tycat.c
@@ -327,5 +327,5 @@ shutdown:
327 ecore_file_shutdown(); 327 ecore_file_shutdown();
328 ecore_shutdown(); 328 ecore_shutdown();
329 eina_shutdown(); 329 eina_shutdown();
330 return 0; 330 return ret;
331} 331}
diff --git a/src/bin/tyls.c b/src/bin/tyls.c
index 3d815cc..87d3f03 100644
--- a/src/bin/tyls.c
+++ b/src/bin/tyls.c
@@ -27,8 +27,6 @@ Evas_Object *o = NULL;
27struct termios told, tnew; 27struct termios told, tnew;
28int tw = 0, th = 0, cw = 0, ch = 0; 28int tw = 0, th = 0, cw = 0, ch = 0;
29 29
30#include "extns.h"
31
32static int 30static int
33echo_off(void) 31echo_off(void)
34{ 32{
@@ -46,36 +44,6 @@ echo_on(void)
46} 44}
47 45
48static void 46static void
49scaleterm(int w, int h, int *iw, int *ih)
50{
51 if (w > (tw * cw))
52 {
53 *iw = tw;
54 *ih = ((h * (tw * cw) / w) + (ch - 1)) / ch;
55 }
56 else
57 {
58 *iw = (w + (cw - 1)) / cw;
59 *ih = (h + (ch - 1)) / ch;
60 }
61}
62
63static const char *
64is_fmt(const char *f, const char **extn)
65{
66 int i, len, l;
67
68 len = strlen(f);
69 for (i = 0; extn[i]; i++)
70 {
71 l = strlen(extn[i]);
72 if (len < l) continue;
73 if (!strcasecmp(extn[i], f + len - l)) return extn[i];
74 }
75 return NULL;
76}
77
78static void
79size_print(char *buf, int bufsz, char *sz, unsigned long long size) 47size_print(char *buf, int bufsz, char *sz, unsigned long long size)
80{ 48{
81 if (size < 1024LL) 49 if (size < 1024LL)