summaryrefslogtreecommitdiffstats
path: root/call/yapp.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-17 09:36:38 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-17 09:36:38 +0200
commit7cc473aed830db1395ed0d0701791889a6e96e4f (patch)
tree471f77a15a0d42c5cf7722bd5774869726ed7982 /call/yapp.c
parent94eb17efbd1ec81187fced585ab05ad0d0eb555c (diff)
Kill a ton of useless casts to char * all over the code.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'call/yapp.c')
-rw-r--r--call/yapp.c4
1 files changed, 2 insertions, 2 deletions
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;