From d1e05cfad4a5d96885622326ae080b6658ed08a9 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Wed, 3 Jul 2013 16:24:14 +0200 Subject: util: Rename block_size to chunk Change-Id: Icbc6cbe057e9efcc0040540e24e70a967d632ce0 Signed-off-by: Paul Kocialkowski --- samsung-ipc/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'samsung-ipc') diff --git a/samsung-ipc/util.c b/samsung-ipc/util.c index e7bfb01..08c6484 100644 --- a/samsung-ipc/util.c +++ b/samsung-ipc/util.c @@ -34,7 +34,7 @@ #include "util.h" -void *file_data_read(char *path, int size, int block_size) +void *file_data_read(char *path, int size, int chunk) { void *data = NULL; int fd = -1; @@ -43,7 +43,7 @@ void *file_data_read(char *path, int size, int block_size) int count; int rc; - if (path == NULL || size <= 0 || block_size <= 0) + if (path == NULL || size <= 0 || chunk <= 0) return NULL; fd = open(path, O_RDONLY); @@ -57,7 +57,7 @@ void *file_data_read(char *path, int size, int block_size) count = 0; while (count < size) { - rc = read(fd, p, size - count > block_size ? block_size : size - count); + rc = read(fd, p, size - count > chunk ? chunk : size - count); if (rc < 0) goto error; -- cgit v1.1