diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-06-25 22:31:34 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-06-25 22:31:34 +0200 |
commit | 44d464fd20940d9ecb748579f071bd8aec4975fc (patch) | |
tree | b8d4fb3283ace9968867738b82d75e57e43582d8 /samsung-ipc | |
parent | 30ba6fd8cd5cf14ebdcd1738bb8972149f764054 (diff) | |
download | external_libsamsung-ipc-44d464fd20940d9ecb748579f071bd8aec4975fc.zip external_libsamsung-ipc-44d464fd20940d9ecb748579f071bd8aec4975fc.tar.gz external_libsamsung-ipc-44d464fd20940d9ecb748579f071bd8aec4975fc.tar.bz2 |
Coding style: Move ; around in for statements
Change-Id: I08cc4a5c404d1b513c56aa1eaeb68dfa6768a4e4
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc')
-rw-r--r-- | samsung-ipc/ipc.c | 4 | ||||
-rw-r--r-- | samsung-ipc/ipc_util.c | 4 | ||||
-rw-r--r-- | samsung-ipc/rfs.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c index db68f81..4b03ea1 100644 --- a/samsung-ipc/ipc.c +++ b/samsung-ipc/ipc.c @@ -89,7 +89,7 @@ int ipc_device_detect(void) int len = strlen(str); char tmp; - for (i=0 ; i < len ; i++) + for (i=0; i < len; i++) { tmp = (char) tolower(str[i]); str[i] = tmp; @@ -112,7 +112,7 @@ int ipc_device_detect(void) kernel_version = strdup(utsname.release); #endif - for (i=0 ; i < ipc_devices_count ; i++) + for (i=0; i < ipc_devices_count; i++) { if (strstr(board_name, ipc_devices[i].board_name) != NULL) { diff --git a/samsung-ipc/ipc_util.c b/samsung-ipc/ipc_util.c index 1b96768..9c90e78 100644 --- a/samsung-ipc/ipc_util.c +++ b/samsung-ipc/ipc_util.c @@ -340,7 +340,7 @@ void *ipc_client_mtd_read(struct ipc_client *client, char *mtd_name, int size, data_p=(uint8_t *) mtd_p; - for (i=0 ; i < size / block_size ; i++) + for (i=0; i < size / block_size; i++) { offs = i * block_size; if (ioctl(fd, MEMGETBADBLOCK, &offs) == 1) @@ -389,7 +389,7 @@ void *ipc_client_file_read(struct ipc_client *client, char *file_name, int size, data_p=(uint8_t *) file_p; - for (i=0 ; i < size / block_size ; i++) + for (i=0; i < size / block_size; i++) { read(fd, data_p, block_size); data_p+=block_size; diff --git a/samsung-ipc/rfs.c b/samsung-ipc/rfs.c index 8233eb6..648efd5 100644 --- a/samsung-ipc/rfs.c +++ b/samsung-ipc/rfs.c @@ -37,7 +37,7 @@ void md5hash2string(char *out, unsigned char *in) { int i; - for (i=0 ; i < MD5_DIGEST_LENGTH ; i++) + for (i=0; i < MD5_DIGEST_LENGTH; i++) { /* After the first iteration, we override \0. */ if (*in < 0x10) |