summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-06-20 09:42:50 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2020-06-23 10:28:13 +0200
commitc2be0d0dba1e11bcedbe41997fe0ea9b98014289 (patch)
tree4396268b896580b6ffea2e3d68fddd746d809fd6
parent108ee1d485824a33047867b55f529e63fe11868c (diff)
Get rid of trailing whitespaces (3 / 14)
Remove trailing whitespaces Differential Revision: https://phab.enlightenment.org/D12001
-rw-r--r--src/generic/evas/common/shmfile.h2
-rw-r--r--src/generic/evas/common/timeout.h4
-rw-r--r--src/generic/evas/gst/main.c2
-rw-r--r--src/generic/evas/ps/main.c4
-rw-r--r--src/generic/evas/rsvg/main.c2
-rw-r--r--src/generic/evas/xcf/main.c24
6 files changed, 19 insertions, 19 deletions
diff --git a/src/generic/evas/common/shmfile.h b/src/generic/evas/common/shmfile.h
index f70a8fd157..a58dd4bf2b 100644
--- a/src/generic/evas/common/shmfile.h
+++ b/src/generic/evas/common/shmfile.h
@@ -4,7 +4,7 @@
4#ifdef __cplusplus 4#ifdef __cplusplus
5extern "C" { 5extern "C" {
6#endif 6#endif
7 7
8extern int shm_fd; 8extern int shm_fd;
9extern int shm_size; 9extern int shm_size;
10extern void *shm_addr; 10extern void *shm_addr;
diff --git a/src/generic/evas/common/timeout.h b/src/generic/evas/common/timeout.h
index 8725627e06..2ea039badf 100644
--- a/src/generic/evas/common/timeout.h
+++ b/src/generic/evas/common/timeout.h
@@ -4,9 +4,9 @@
4#ifdef __cplusplus 4#ifdef __cplusplus
5extern "C" { 5extern "C" {
6#endif 6#endif
7 7
8void timeout_init(int seconds); 8void timeout_init(int seconds);
9 9
10#ifdef __cplusplus 10#ifdef __cplusplus
11} 11}
12#endif 12#endif
diff --git a/src/generic/evas/gst/main.c b/src/generic/evas/gst/main.c
index 3f93507078..4ac37c4dda 100644
--- a/src/generic/evas/gst/main.c
+++ b/src/generic/evas/gst/main.c
@@ -70,7 +70,7 @@ _gst_init(const char *filename)
70 70
71 D("Setting file %s\n", uri); 71 D("Setting file %s\n", uri);
72 72
73 descr = g_strdup_printf("uridecodebin uri=%s ! typefind ! videoconvert ! " 73 descr = g_strdup_printf("uridecodebin uri=%s ! typefind ! videoconvert ! "
74 " appsink name=sink caps=\"" CAPS "\"", uri); 74 " appsink name=sink caps=\"" CAPS "\"", uri);
75 pipeline = gst_parse_launch(descr, &error); 75 pipeline = gst_parse_launch(descr, &error);
76 free(uri); 76 free(uri);
diff --git a/src/generic/evas/ps/main.c b/src/generic/evas/ps/main.c
index 586c7e8f0b..2afa62adff 100644
--- a/src/generic/evas/ps/main.c
+++ b/src/generic/evas/ps/main.c
@@ -151,7 +151,7 @@ _pixcopy(DATA32 *dst, unsigned char *src, int size)
151 e = s + size; 151 e = s + size;
152 while (s < e) 152 while (s < e)
153 { 153 {
154 d[0] = 154 d[0] =
155 0xff000000 | 155 0xff000000 |
156 (s[2] << 16) | 156 (s[2] << 16) |
157 (s[1] << 8 ) | 157 (s[1] << 8 ) |
@@ -250,7 +250,7 @@ main(int argc, char **argv)
250 D("page...: %d\n", page_nbr); 250 D("page...: %d\n", page_nbr);
251 251
252 timeout_init(10); 252 timeout_init(10);
253 253
254 if (!_spectre_init(file, page_nbr, size_w, size_h)) 254 if (!_spectre_init(file, page_nbr, size_w, size_h))
255 return -1; 255 return -1;
256 D("_spectre_init done\n"); 256 D("_spectre_init done\n");
diff --git a/src/generic/evas/rsvg/main.c b/src/generic/evas/rsvg/main.c
index 70d50e204f..1eaf2a32c7 100644
--- a/src/generic/evas/rsvg/main.c
+++ b/src/generic/evas/rsvg/main.c
@@ -199,7 +199,7 @@ int main(int argc, char **argv)
199 } 199 }
200 200
201 timeout_init(5); 201 timeout_init(5);
202 202
203 if (!_svg_init(file)) return -1; 203 if (!_svg_init(file)) return -1;
204 if (!read_svg_header(scale_down, dpi, size_w, size_h)) return -1; 204 if (!read_svg_header(scale_down, dpi, size_w, size_h)) return -1;
205 205
diff --git a/src/generic/evas/xcf/main.c b/src/generic/evas/xcf/main.c
index 767c6bf4b1..d9e162dac6 100644
--- a/src/generic/evas/xcf/main.c
+++ b/src/generic/evas/xcf/main.c
@@ -275,7 +275,7 @@ static File *
275f_open(const char *file) 275f_open(const char *file)
276{ 276{
277 File *f; 277 File *f;
278 278
279 f = calloc(1, sizeof(File)); 279 f = calloc(1, sizeof(File));
280 if (!f) return NULL; 280 if (!f) return NULL;
281 f->fd = open(file, O_RDONLY); 281 f->fd = open(file, O_RDONLY);
@@ -304,13 +304,13 @@ f_close(File *f)
304 free(f); 304 free(f);
305} 305}
306 306
307#ifdef FBUF 307#ifdef FBUF
308static void 308static void
309_f_read_pos(File *f, long pos, long bytes) 309_f_read_pos(File *f, long pos, long bytes)
310{ 310{
311 long i, cnum; 311 long i, cnum;
312 Chunk **cks; 312 Chunk **cks;
313 313
314 if (f->size > 0) return; 314 if (f->size > 0) return;
315 cnum = ((pos + bytes) / CHUNK_SIZE) + 1; 315 cnum = ((pos + bytes) / CHUNK_SIZE) + 1;
316 if (f->chunk_num >= cnum) return; 316 if (f->chunk_num >= cnum) return;
@@ -343,19 +343,19 @@ _f_read_pos(File *f, long pos, long bytes)
343static long 343static long
344f_read(File *f, unsigned char *dest, long bytes) 344f_read(File *f, unsigned char *dest, long bytes)
345{ 345{
346#ifdef FBUF 346#ifdef FBUF
347 long done = 0, off = 0; 347 long done = 0, off = 0;
348 int c; 348 int c;
349 unsigned char *p; 349 unsigned char *p;
350 _f_read_pos(f, f->pos, bytes); 350 _f_read_pos(f, f->pos, bytes);
351 351
352 c = f->pos / CHUNK_SIZE; 352 c = f->pos / CHUNK_SIZE;
353 off = f->pos - (c * CHUNK_SIZE); 353 off = f->pos - (c * CHUNK_SIZE);
354 p = dest; 354 p = dest;
355 while ((done < bytes) && (c < f->chunk_num)) 355 while ((done < bytes) && (c < f->chunk_num))
356 { 356 {
357 long amount = bytes - done; 357 long amount = bytes - done;
358 358
359 if (!f->chunk[c]) break; 359 if (!f->chunk[c]) break;
360 if (amount > (f->chunk[c]->size - off)) 360 if (amount > (f->chunk[c]->size - off))
361 amount = (f->chunk[c]->size - off); 361 amount = (f->chunk[c]->size - off);
@@ -372,7 +372,7 @@ f_read(File *f, unsigned char *dest, long bytes)
372 long done = gzread(f->fp, dest, bytes); 372 long done = gzread(f->fp, dest, bytes);
373 f->pos += done; 373 f->pos += done;
374 return done; 374 return done;
375#endif 375#endif
376} 376}
377 377
378static void 378static void
@@ -383,14 +383,14 @@ f_seek(File *f, long pos)
383 { 383 {
384 if (pos >= f->size) pos = f->size -1; 384 if (pos >= f->size) pos = f->size -1;
385 } 385 }
386#endif 386#endif
387 if (f->pos == pos) return; 387 if (f->pos == pos) return;
388 f->pos = pos; 388 f->pos = pos;
389#ifdef FBUF 389#ifdef FBUF
390 _f_read_pos(f, f->pos, 1); 390 _f_read_pos(f, f->pos, 1);
391#else 391#else
392 gzseek(f->fp, f->pos, SEEK_SET); 392 gzseek(f->fp, f->pos, SEEK_SET);
393#endif 393#endif
394} 394}
395 395
396 396
@@ -1696,12 +1696,12 @@ main(int argc, char **argv)
1696 // int size_h = atoi(argv[i]); 1696 // int size_h = atoi(argv[i]);
1697 } 1697 }
1698 } 1698 }
1699 1699
1700 timeout_init(8); 1700 timeout_init(8);
1701 1701
1702 D("xcf_file_init\n"); 1702 D("xcf_file_init\n");
1703 if (!xcf_file_init(file)) return -1; 1703 if (!xcf_file_init(file)) return -1;
1704 1704
1705 D("size %i %i\n", image->width, image->height); 1705 D("size %i %i\n", image->width, image->height);
1706 if (!head_only) 1706 if (!head_only)
1707 { 1707 {