stefan pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=1a9b5fcf70b38eb5796a318414f65c46a001bd1b
commit 1a9b5fcf70b38eb5796a318414f65c46a001bd1b Author: Elyes HAOUAS <[email protected]> Date: Sat Jun 20 09:47:04 2020 +0000 Get rid of trailing whitespaces (7 / 14) Remove trailing whitespaces Differential Revision: https://phab.enlightenment.org/D12005 --- src/lib/eet/Eet.h | 10 +++++----- src/lib/eet/eet_connection.c | 20 ++++++++++---------- src/lib/eet/eet_data.c | 22 +++++++++++----------- src/lib/eet/eet_lib.c | 2 +- src/lib/eeze/Eeze.h | 2 +- src/lib/eeze/eeze_disk_libmount_new.c | 2 +- src/lib/eeze/eeze_udev_syspath.c | 2 +- 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); * If the eet file handle is not valid nothing will be done. * * @since 1.0.0 - * + * * @see eet_clearcache() */ EAPI Eet_Error @@ -2027,7 +2027,7 @@ eet_identity_open(const char *certificate_file, /** * @ingroup Eet_Cipher_Group - * @brief Close and release all resource used by an Eet_Key. + * @brief Close and release all resource used by an Eet_Key. * A reference counter prevent it from being freed until all file * using it are also closed. * @@ -3192,11 +3192,11 @@ eet_data_write(Eet_File *ef, /** * @typedef Eet_Data_Descriptor_Class - * - * Callback protoype for Eet_Dump + * + * Callback protoype for Eet_Dump * * @param data To passe to the callback - * @param str The string to dump + * @param str The string to dump * */ typedef 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, const void *user_data) { Eet_Connection *conn; - + if ((!eet_read_cb) || (!eet_write_cb)) return NULL; - + conn = calloc(1, sizeof (Eet_Connection)); if (!conn) return NULL; conn->eet_read_cb = eet_read_cb; @@ -53,12 +53,12 @@ eet_connection_received(Eet_Connection *conn, do { size_t copy_size; - + if (conn->size == 0) { const int *msg; size_t packet_size; - + if (size < (sizeof(int) * 2)) break; msg = data; @@ -76,7 +76,7 @@ eet_connection_received(Eet_Connection *conn, /* Not a partial receive, go the quick way. */ if (!conn->eet_read_cb(data, packet_size, conn->user_data)) break; - + data = (void *)((char *)data + packet_size); size -= packet_size; conn->received = 0; @@ -86,7 +86,7 @@ eet_connection_received(Eet_Connection *conn, if (conn->allocated < conn->size) { void *tmp; - + tmp = realloc(conn->buffer, conn->size); if (!tmp) break; conn->buffer = tmp; @@ -99,15 +99,15 @@ eet_connection_received(Eet_Connection *conn, (conn->size - conn->received >= size) ? size : conn->size - conn->received; memcpy((char *)conn->buffer + conn->received, data, copy_size); - + conn->received += copy_size; data = (void *)((char *)data + copy_size); size -= copy_size; - + if (conn->received == conn->size) { size_t data_size; - + data_size = conn->size; conn->size = 0; conn->received = 0; @@ -121,7 +121,7 @@ eet_connection_received(Eet_Connection *conn, } } while (size > 0); - + return size; } 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, int *size_ret); static int -eet_data_get_value(const Eet_Dictionary *ed, - const void *src, +eet_data_get_value(const Eet_Dictionary *ed, + const void *src, const void *src_end, void *dst); @@ -1306,10 +1306,10 @@ _eina_value_to_eet_type_get(const Eina_Value_Type *eina_type) } static int -eet_data_get_value(const Eet_Dictionary *ed, - const void *src, +eet_data_get_value(const Eet_Dictionary *ed, + const void *src, const void *src_end, - void *dst) + void *dst) { const Eina_Value_Type *eina_type; void *tmp; @@ -1349,9 +1349,9 @@ eet_data_get_value(const Eet_Dictionary *ed, } static void * -eet_data_put_value(Eet_Dictionary *ed, - const void *src, - int *size_ret) +eet_data_put_value(Eet_Dictionary *ed, + const void *src, + int *size_ret) { const Eina_Value *value = *(Eina_Value **)src; const Eina_Value_Type *value_type; @@ -2249,7 +2249,7 @@ eet_data_descriptor_element_add(Eet_Data_Descriptor *edd, ede->counter_name = counter_name; if (subtype) - INF("Adding '%s' of size %i to '%s' at offset %i.", + INF("Adding '%s' of size %i to '%s' at offset %i.", subtype->name, subtype->size, edd->name, offset); @@ -2299,7 +2299,7 @@ EAPI void * eet_data_read_cipher_buffer(Eet_File *ef, Eet_Data_Descriptor *edd, const char *name, - const char *cipher_key, + const char *cipher_key, char* buffer, int buffer_size) { @@ -4613,7 +4613,7 @@ eet_data_get_unknown(Eet_Free_Context *context, memcpy(data, data_ret, subtype->size); free(data_ret); } - else + else { ptr = data; *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) if (ef->mode == EET_FILE_MODE_READ) eet_cache_add(ef, &eet_readers, &eet_readers_num, &eet_readers_alloc); - + done: UNLOCK_CACHE; 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); * * @param syspath The /sys/ path with or without the /sys/ * @return A integer with the sysnum or -1 on failure - * + * * @since 1.12 */ EAPI 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) _mountinfo = open("/proc/self/mountinfo", O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); if (_mountinfo < 0) goto error; if (fcntl(_mountinfo, F_SETFL, O_NONBLOCK) < 0) goto error; - + _mountinfo_fdh = ecore_main_fd_handler_file_add(_mountinfo, ECORE_FD_ERROR, _eeze_mount_fdh, NULL, NULL, NULL); if (!_mountinfo_fdh) goto error; _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) return ret; } -EAPI int +EAPI int eeze_udev_syspath_get_sysnum(const char *syspath) { _udev_device *device; --
