about summary refs log tree commit diff
path: root/Src/Zle/zle_tricky.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-11-18 17:26:10 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-11-18 17:26:10 +0000
commit63cf1412f24312027e3a04bb94601481729a07ca (patch)
treefb8871369aa5fab8790bf69c654471051eaf3b6f /Src/Zle/zle_tricky.c
parentb1c72569b9c44a3500ef512e53efdd6ac030b9f6 (diff)
downloadzsh-63cf1412f24312027e3a04bb94601481729a07ca.tar.gz
zsh-63cf1412f24312027e3a04bb94601481729a07ca.tar.xz
zsh-63cf1412f24312027e3a04bb94601481729a07ca.zip
Got rid of two unneeded "(char *)" casts.
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r--Src/Zle/zle_tricky.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index c32dd675c..ce5855b5c 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -913,7 +913,7 @@ addx(char **ptmp)
 mod_export char *
 dupstrspace(const char *str)
 {
-    int len = strlen((char *)str);
+    int len = strlen(str);
     char *t = (char *) hcalloc(len + 2);
     strcpy(t, str);
     strcpy(t+len, " ");
@@ -1790,7 +1790,7 @@ inststrlen(char *str, int move, int len)
 	ZLE_STRING_T zlestr;
 	int zlelen;
 
-	instr = ztrduppfx((char *)str, len);
+	instr = ztrduppfx(str, len);
 	zlestr = stringaszleline(instr, 0, &zlelen, NULL, NULL);
 	ZS_strncpy(zleline + zlecs, zlestr, zlelen);
 	free(zlestr);