From 7cc473aed830db1395ed0d0701791889a6e96e4f Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 17 Jun 2013 09:36:38 +0200 Subject: Kill a ton of useless casts to char * all over the code. Signed-off-by: Ralf Baechle --- call/yapp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'call') diff --git a/call/yapp.c b/call/yapp.c index 0402990..a8fda53 100644 --- a/call/yapp.c +++ b/call/yapp.c @@ -291,7 +291,7 @@ static int yapp_download_data(int *filefd, unsigned char *buffer) char *hptr, *hfield[3]; if ((length = buffer[1]) == 0) length = 256; - hptr = (char *) buffer + 2; + hptr = buffer + 2; while (length > 0) { int hlen; hlen = strlen(hptr) + 1; @@ -549,7 +549,7 @@ static int yapp_upload_data(int filefd, char *filename, int filelength, len = buffer[1]; if (buffer[len] == 'C') yappc = 1; - rpos = atol((char *) buffer + 4); + rpos = atol(buffer + 4); lseek(filefd, rpos, SEEK_SET); buffer[0] = ACK; buffer[1] = yappc ? ACK : 0x02; -- cgit v1.2.3