* arm/syscalls.c (_unlink, _system, _rename): Cast arguments
to do_AngelSWI to int.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2006-12-25  Kazu Hirata  <kazu@codesourcery.com> | ||||||
|  |  | ||||||
|  | 	* arm/syscalls.c (_unlink, _system, _rename): Cast arguments | ||||||
|  | 	to do_AngelSWI to int. | ||||||
|  |  | ||||||
| 2006-12-18  Kazu Hirata  <kazu@codesourcery.com> | 2006-12-18  Kazu Hirata  <kazu@codesourcery.com> | ||||||
|  |  | ||||||
| 	Merge from newlib-csl-20060320-branch: | 	Merge from newlib-csl-20060320-branch: | ||||||
|   | |||||||
| @@ -569,7 +569,7 @@ _unlink (const char *path) | |||||||
| { | { | ||||||
| #ifdef ARM_RDI_MONITOR | #ifdef ARM_RDI_MONITOR | ||||||
|   int block[2]; |   int block[2]; | ||||||
|   block[0] = path; |   block[0] = (int)path; | ||||||
|   block[1] = strlen(path); |   block[1] = strlen(path); | ||||||
|   return wrap (do_AngelSWI (AngelSWI_Reason_Remove, block)) ? -1 : 0; |   return wrap (do_AngelSWI (AngelSWI_Reason_Remove, block)) ? -1 : 0; | ||||||
| #else | #else | ||||||
| @@ -665,7 +665,7 @@ _system (const char *s) | |||||||
|      meaning to its return value.  Try to do something reasonable....  */ |      meaning to its return value.  Try to do something reasonable....  */ | ||||||
|   if (!s) |   if (!s) | ||||||
|     return 1;  /* maybe there is a shell available? we can hope. :-P */ |     return 1;  /* maybe there is a shell available? we can hope. :-P */ | ||||||
|   block[0] = s; |   block[0] = (int)s; | ||||||
|   block[1] = strlen (s); |   block[1] = strlen (s); | ||||||
|   e = wrap (do_AngelSWI (AngelSWI_Reason_System, block)); |   e = wrap (do_AngelSWI (AngelSWI_Reason_System, block)); | ||||||
|   if ((e >= 0) && (e < 256)) |   if ((e >= 0) && (e < 256)) | ||||||
| @@ -690,9 +690,9 @@ _rename (const char * oldpath, const char * newpath) | |||||||
| { | { | ||||||
| #ifdef ARM_RDI_MONITOR | #ifdef ARM_RDI_MONITOR | ||||||
|   int block[4]; |   int block[4]; | ||||||
|   block[0] = oldpath; |   block[0] = (int)oldpath; | ||||||
|   block[1] = strlen(oldpath); |   block[1] = strlen(oldpath); | ||||||
|   block[2] = newpath; |   block[2] = (int)newpath; | ||||||
|   block[3] = strlen(newpath); |   block[3] = strlen(newpath); | ||||||
|   return wrap (do_AngelSWI (AngelSWI_Reason_Rename, block)) ? -1 : 0; |   return wrap (do_AngelSWI (AngelSWI_Reason_Rename, block)) ? -1 : 0; | ||||||
| #else | #else | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user