summaryrefslogtreecommitdiff
path: root/src/bin/tyls.c
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 /src/bin/tyls.c
parent164ebd4c6755f3617dec3611b4a8f26ea743a614 (diff)
remove warngings
Diffstat (limited to 'src/bin/tyls.c')
-rw-r--r--src/bin/tyls.c32
1 files changed, 0 insertions, 32 deletions
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)