summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-06-20 09:47:04 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2020-06-23 10:30:05 +0200
commit1a9b5fcf70b38eb5796a318414f65c46a001bd1b (patch)
treed3fb9b59642ae189246caa6e3d974a686a3b21fa
parent0a0bba64c798f1aadcdb19c2027465ab6b8596a9 (diff)
Get rid of trailing whitespaces (7 / 14)
Remove trailing whitespaces Differential Revision: https://phab.enlightenment.org/D12005
-rw-r--r--src/lib/eet/Eet.h10
-rw-r--r--src/lib/eet/eet_connection.c20
-rw-r--r--src/lib/eet/eet_data.c22
-rw-r--r--src/lib/eet/eet_lib.c2
-rw-r--r--src/lib/eeze/Eeze.h2
-rw-r--r--src/lib/eeze/eeze_disk_libmount_new.c2
-rw-r--r--src/lib/eeze/eeze_udev_syspath.c2
7 files changed, 30 insertions, 30 deletions
diff --git a/src/lib/eet/Eet.h b/src/lib/eet/Eet.h
index 0d1c0021f8..c3016d9b67 100644
--- a/src/lib/eet/Eet.h
+++ b/src/lib/eet/Eet.h
@@ -665,7 +665,7 @@ eet_mode_get(Eet_File *ef);
665 * If the eet file handle is not valid nothing will be done. 665 * If the eet file handle is not valid nothing will be done.
666 * 666 *
667 * @since 1.0.0 667 * @since 1.0.0
668 * 668 *
669 * @see eet_clearcache() 669 * @see eet_clearcache()
670 */ 670 */
671EAPI Eet_Error 671EAPI Eet_Error
@@ -2027,7 +2027,7 @@ eet_identity_open(const char *certificate_file,
2027 2027
2028/** 2028/**
2029 * @ingroup Eet_Cipher_Group 2029 * @ingroup Eet_Cipher_Group
2030 * @brief Close and release all resource used by an Eet_Key. 2030 * @brief Close and release all resource used by an Eet_Key.
2031 * A reference counter prevent it from being freed until all file 2031 * A reference counter prevent it from being freed until all file
2032 * using it are also closed. 2032 * using it are also closed.
2033 * 2033 *
@@ -3192,11 +3192,11 @@ eet_data_write(Eet_File *ef,
3192 3192
3193/** 3193/**
3194 * @typedef Eet_Data_Descriptor_Class 3194 * @typedef Eet_Data_Descriptor_Class
3195 * 3195 *
3196 * Callback protoype for Eet_Dump 3196 * Callback protoype for Eet_Dump
3197 * 3197 *
3198 * @param data To passe to the callback 3198 * @param data To passe to the callback
3199 * @param str The string to dump 3199 * @param str The string to dump
3200 * 3200 *
3201 */ 3201 */
3202typedef void (*Eet_Dump_Callback)(void *data, const char *str); 3202typedef void (*Eet_Dump_Callback)(void *data, const char *str);
diff --git a/src/lib/eet/eet_connection.c b/src/lib/eet/eet_connection.c
index c46f614960..eb83f9c8c2 100644
--- a/src/lib/eet/eet_connection.c
+++ b/src/lib/eet/eet_connection.c
@@ -33,9 +33,9 @@ eet_connection_new(Eet_Read_Cb *eet_read_cb,
33 const void *user_data) 33 const void *user_data)
34{ 34{
35 Eet_Connection *conn; 35 Eet_Connection *conn;
36 36
37 if ((!eet_read_cb) || (!eet_write_cb)) return NULL; 37 if ((!eet_read_cb) || (!eet_write_cb)) return NULL;
38 38
39 conn = calloc(1, sizeof (Eet_Connection)); 39 conn = calloc(1, sizeof (Eet_Connection));
40 if (!conn) return NULL; 40 if (!conn) return NULL;
41 conn->eet_read_cb = eet_read_cb; 41 conn->eet_read_cb = eet_read_cb;
@@ -53,12 +53,12 @@ eet_connection_received(Eet_Connection *conn,
53 do 53 do
54 { 54 {
55 size_t copy_size; 55 size_t copy_size;
56 56
57 if (conn->size == 0) 57 if (conn->size == 0)
58 { 58 {
59 const int *msg; 59 const int *msg;
60 size_t packet_size; 60 size_t packet_size;
61 61
62 if (size < (sizeof(int) * 2)) break; 62 if (size < (sizeof(int) * 2)) break;
63 63
64 msg = data; 64 msg = data;
@@ -76,7 +76,7 @@ eet_connection_received(Eet_Connection *conn,
76 /* Not a partial receive, go the quick way. */ 76 /* Not a partial receive, go the quick way. */
77 if (!conn->eet_read_cb(data, packet_size, conn->user_data)) 77 if (!conn->eet_read_cb(data, packet_size, conn->user_data))
78 break; 78 break;
79 79
80 data = (void *)((char *)data + packet_size); 80 data = (void *)((char *)data + packet_size);
81 size -= packet_size; 81 size -= packet_size;
82 conn->received = 0; 82 conn->received = 0;
@@ -86,7 +86,7 @@ eet_connection_received(Eet_Connection *conn,
86 if (conn->allocated < conn->size) 86 if (conn->allocated < conn->size)
87 { 87 {
88 void *tmp; 88 void *tmp;
89 89
90 tmp = realloc(conn->buffer, conn->size); 90 tmp = realloc(conn->buffer, conn->size);
91 if (!tmp) break; 91 if (!tmp) break;
92 conn->buffer = tmp; 92 conn->buffer = tmp;
@@ -99,15 +99,15 @@ eet_connection_received(Eet_Connection *conn,
99 (conn->size - conn->received >= 99 (conn->size - conn->received >=
100 size) ? size : conn->size - conn->received; 100 size) ? size : conn->size - conn->received;
101 memcpy((char *)conn->buffer + conn->received, data, copy_size); 101 memcpy((char *)conn->buffer + conn->received, data, copy_size);
102 102
103 conn->received += copy_size; 103 conn->received += copy_size;
104 data = (void *)((char *)data + copy_size); 104 data = (void *)((char *)data + copy_size);
105 size -= copy_size; 105 size -= copy_size;
106 106
107 if (conn->received == conn->size) 107 if (conn->received == conn->size)
108 { 108 {
109 size_t data_size; 109 size_t data_size;
110 110
111 data_size = conn->size; 111 data_size = conn->size;
112 conn->size = 0; 112 conn->size = 0;
113 conn->received = 0; 113 conn->received = 0;
@@ -121,7 +121,7 @@ eet_connection_received(Eet_Connection *conn,
121 } 121 }
122 } 122 }
123 while (size > 0); 123 while (size > 0);
124 124
125 return size; 125 return size;
126} 126}
127 127
diff --git a/src/lib/eet/eet_data.c b/src/lib/eet/eet_data.c
index 5bcf65f9d6..3815db3d4f 100644
--- a/src/lib/eet/eet_data.c
+++ b/src/lib/eet/eet_data.c
@@ -334,8 +334,8 @@ eet_data_put_null(Eet_Dictionary *ed,
334 int *size_ret); 334 int *size_ret);
335 335
336static int 336static int
337eet_data_get_value(const Eet_Dictionary *ed, 337eet_data_get_value(const Eet_Dictionary *ed,
338 const void *src, 338 const void *src,
339 const void *src_end, 339 const void *src_end,
340 void *dst); 340 void *dst);
341 341
@@ -1306,10 +1306,10 @@ _eina_value_to_eet_type_get(const Eina_Value_Type *eina_type)
1306} 1306}
1307 1307
1308static int 1308static int
1309eet_data_get_value(const Eet_Dictionary *ed, 1309eet_data_get_value(const Eet_Dictionary *ed,
1310 const void *src, 1310 const void *src,
1311 const void *src_end, 1311 const void *src_end,
1312 void *dst) 1312 void *dst)
1313{ 1313{
1314 const Eina_Value_Type *eina_type; 1314 const Eina_Value_Type *eina_type;
1315 void *tmp; 1315 void *tmp;
@@ -1349,9 +1349,9 @@ eet_data_get_value(const Eet_Dictionary *ed,
1349} 1349}
1350 1350
1351static void * 1351static void *
1352eet_data_put_value(Eet_Dictionary *ed, 1352eet_data_put_value(Eet_Dictionary *ed,
1353 const void *src, 1353 const void *src,
1354 int *size_ret) 1354 int *size_ret)
1355{ 1355{
1356 const Eina_Value *value = *(Eina_Value **)src; 1356 const Eina_Value *value = *(Eina_Value **)src;
1357 const Eina_Value_Type *value_type; 1357 const Eina_Value_Type *value_type;
@@ -2249,7 +2249,7 @@ eet_data_descriptor_element_add(Eet_Data_Descriptor *edd,
2249 ede->counter_name = counter_name; 2249 ede->counter_name = counter_name;
2250 2250
2251 if (subtype) 2251 if (subtype)
2252 INF("Adding '%s' of size %i to '%s' at offset %i.", 2252 INF("Adding '%s' of size %i to '%s' at offset %i.",
2253 subtype->name, subtype->size, 2253 subtype->name, subtype->size,
2254 edd->name, offset); 2254 edd->name, offset);
2255 2255
@@ -2299,7 +2299,7 @@ EAPI void *
2299eet_data_read_cipher_buffer(Eet_File *ef, 2299eet_data_read_cipher_buffer(Eet_File *ef,
2300 Eet_Data_Descriptor *edd, 2300 Eet_Data_Descriptor *edd,
2301 const char *name, 2301 const char *name,
2302 const char *cipher_key, 2302 const char *cipher_key,
2303 char* buffer, 2303 char* buffer,
2304 int buffer_size) 2304 int buffer_size)
2305{ 2305{
@@ -4613,7 +4613,7 @@ eet_data_get_unknown(Eet_Free_Context *context,
4613 memcpy(data, data_ret, subtype->size); 4613 memcpy(data, data_ret, subtype->size);
4614 free(data_ret); 4614 free(data_ret);
4615 } 4615 }
4616 else 4616 else
4617 { 4617 {
4618 ptr = data; 4618 ptr = data;
4619 *ptr = (void *)data_ret; 4619 *ptr = (void *)data_ret;
diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c
index 0e05b2acaf..c057a5c667 100644
--- a/src/lib/eet/eet_lib.c
+++ b/src/lib/eet/eet_lib.c
@@ -1485,7 +1485,7 @@ eet_mmap(const Eina_File *file)
1485 1485
1486 if (ef->mode == EET_FILE_MODE_READ) 1486 if (ef->mode == EET_FILE_MODE_READ)
1487 eet_cache_add(ef, &eet_readers, &eet_readers_num, &eet_readers_alloc); 1487 eet_cache_add(ef, &eet_readers, &eet_readers_num, &eet_readers_alloc);
1488 1488
1489 done: 1489 done:
1490 UNLOCK_CACHE; 1490 UNLOCK_CACHE;
1491 return ef; 1491 return ef;
diff --git a/src/lib/eeze/Eeze.h b/src/lib/eeze/Eeze.h
index a7d92f50bf..b9686a12e4 100644
--- a/src/lib/eeze/Eeze.h
+++ b/src/lib/eeze/Eeze.h
@@ -620,7 +620,7 @@ EAPI Eina_Bool eeze_udev_syspath_is_joystick(const char *syspath);
620 * 620 *
621 * @param syspath The /sys/ path with or without the /sys/ 621 * @param syspath The /sys/ path with or without the /sys/
622 * @return A integer with the sysnum or -1 on failure 622 * @return A integer with the sysnum or -1 on failure
623 * 623 *
624 * @since 1.12 624 * @since 1.12
625 */ 625 */
626EAPI int eeze_udev_syspath_get_sysnum(const char *syspath); 626EAPI int eeze_udev_syspath_get_sysnum(const char *syspath);
diff --git a/src/lib/eeze/eeze_disk_libmount_new.c b/src/lib/eeze/eeze_disk_libmount_new.c
index f7fd17d0af..a04b91453c 100644
--- a/src/lib/eeze/eeze_disk_libmount_new.c
+++ b/src/lib/eeze/eeze_disk_libmount_new.c
@@ -439,7 +439,7 @@ eeze_mount_tabs_watch(void)
439 _mountinfo = open("/proc/self/mountinfo", O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); 439 _mountinfo = open("/proc/self/mountinfo", O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
440 if (_mountinfo < 0) goto error; 440 if (_mountinfo < 0) goto error;
441 if (fcntl(_mountinfo, F_SETFL, O_NONBLOCK) < 0) goto error; 441 if (fcntl(_mountinfo, F_SETFL, O_NONBLOCK) < 0) goto error;
442 442
443 _mountinfo_fdh = ecore_main_fd_handler_file_add(_mountinfo, ECORE_FD_ERROR, _eeze_mount_fdh, NULL, NULL, NULL); 443 _mountinfo_fdh = ecore_main_fd_handler_file_add(_mountinfo, ECORE_FD_ERROR, _eeze_mount_fdh, NULL, NULL, NULL);
444 if (!_mountinfo_fdh) goto error; 444 if (!_mountinfo_fdh) goto error;
445 _fstab_mon = ecore_file_monitor_add("/etc/fstab", _eeze_mount_tab_watcher, NULL); 445 _fstab_mon = ecore_file_monitor_add("/etc/fstab", _eeze_mount_tab_watcher, NULL);
diff --git a/src/lib/eeze/eeze_udev_syspath.c b/src/lib/eeze/eeze_udev_syspath.c
index cf8ee37dd3..4aca7fa74b 100644
--- a/src/lib/eeze/eeze_udev_syspath.c
+++ b/src/lib/eeze/eeze_udev_syspath.c
@@ -369,7 +369,7 @@ eeze_udev_devpath_get_syspath(const char *devpath)
369 return ret; 369 return ret;
370} 370}
371 371
372EAPI int 372EAPI int
373eeze_udev_syspath_get_sysnum(const char *syspath) 373eeze_udev_syspath_get_sysnum(const char *syspath)
374{ 374{
375 _udev_device *device; 375 _udev_device *device;