Get rid of trailing whitespaces (7 / 14)

Remove trailing whitespaces
Differential Revision: https://phab.enlightenment.org/D12005
This commit is contained in:
Elyes HAOUAS 2020-06-20 09:47:04 +00:00 committed by Stefan Schmidt
parent 0a0bba64c7
commit 1a9b5fcf70
7 changed files with 30 additions and 30 deletions

View File

@ -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);

View File

@ -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;
}

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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);

View File

@ -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;