summaryrefslogtreecommitdiff
path: root/src/lib/embryo
diff options
context:
space:
mode:
authorMike McCormack <mikem@atratus.org>2012-11-19 13:10:14 +0000
committerMike McCormack <mikem@ring3k.org>2012-11-19 13:10:14 +0000
commitc1672ed8cfcc1fcaa665412c99173b57dd551bd3 (patch)
treeed94c4837098e036bbfd9ee1566bfdc5589698aa /src/lib/embryo
parent4081a3450d19d816bec6a14e54d1becda2390e36 (diff)
efl: Fix more shadow warnings
Signed-off-by: Mike McCormack <mikem@atratus.org> SVN revision: 79447
Diffstat (limited to 'src/lib/embryo')
-rw-r--r--src/lib/embryo/embryo_amx.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/embryo/embryo_amx.c b/src/lib/embryo/embryo_amx.c
index d4afb508a7..d2882a0aee 100644
--- a/src/lib/embryo/embryo_amx.c
+++ b/src/lib/embryo/embryo_amx.c
@@ -1040,13 +1040,13 @@ embryo_program_run(Embryo_Program *ep, Embryo_Function fn)
1040 1040
1041 if (fn != EMBRYO_FUNCTION_CONT) 1041 if (fn != EMBRYO_FUNCTION_CONT)
1042 { 1042 {
1043 int i; 1043 int j;
1044 1044
1045 for (i = ep->params_size - 1; i >= 0; i--) 1045 for (j = ep->params_size - 1; j >= 0; j--)
1046 { 1046 {
1047 Embryo_Param *pr; 1047 Embryo_Param *pr;
1048 1048
1049 pr = &(ep->params[i]); 1049 pr = &(ep->params[j]);
1050 if (pr->string) 1050 if (pr->string)
1051 { 1051 {
1052 int len; 1052 int len;
@@ -1788,22 +1788,22 @@ embryo_program_run(Embryo_Program *ep, Embryo_Function fn)
1788 return EMBRYO_PROGRAM_SLEEP; 1788 return EMBRYO_PROGRAM_SLEEP;
1789 } 1789 }
1790 { 1790 {
1791 Embryo_Header *hdr; 1791 Embryo_Header *hdr2;
1792 int i, num; 1792 int j, num2;
1793 Embryo_Func_Stub *func_entry; 1793 Embryo_Func_Stub *func_entry;
1794 1794
1795 hdr = (Embryo_Header *)ep->code; 1795 hdr2 = (Embryo_Header *)ep->code;
1796 num = NUMENTRIES(hdr, natives, libraries); 1796 num2 = NUMENTRIES(hdr2, natives, libraries);
1797 func_entry = GETENTRY(hdr, natives, 0); 1797 func_entry = GETENTRY(hdr2, natives, 0);
1798 for (i = 0; i < num; i++) 1798 for (j = 0; j < num2; j++)
1799 { 1799 {
1800 char *entry_name; 1800 char *entry_name;
1801 1801
1802 entry_name = GETENTRYNAME(hdr, func_entry); 1802 entry_name = GETENTRYNAME(hdr2, func_entry);
1803 if (i == offs) 1803 if (j == offs)
1804 printf("EMBRYO: CALL [%i] %s() non-existent!\n", i, entry_name); 1804 printf("EMBRYO: CALL [%i] %s() non-existent!\n", j, entry_name);
1805 func_entry = 1805 func_entry =
1806 (Embryo_Func_Stub *)((unsigned char *)func_entry + hdr->defsize); 1806 (Embryo_Func_Stub *)((unsigned char *)func_entry + hdr2->defsize);
1807 } 1807 }
1808 } 1808 }
1809 ABORT(ep, num); 1809 ABORT(ep, num);