|
@@ -1010,16 +1010,16 @@ int Put_CCS_image(char *SourcePath, unsigned char TargetAddr)
|
|
|
|
|
|
//If ID of target EV board is 1, the IP address will be 192.168.0.21,
|
|
|
//if ID of target EV board is 2, the IP address will be 192.168.0.22.
|
|
|
- sprintf(CCSIpAddress,"192.168.0.2%d", TargetAddr);
|
|
|
+ sprintf((char*)CCSIpAddress,"192.168.0.2%d", TargetAddr);
|
|
|
|
|
|
//Using ftpput command to transfer CCS upgrade image,
|
|
|
//User name : root
|
|
|
//User password : y42j/4cj84
|
|
|
//Destination : /root/ccs.image
|
|
|
- sprintf(ftpcmdbuf,"ftpput -u root -p y42j/4cj84 %s /root/ccs.image %s",
|
|
|
+ sprintf((char*)ftpcmdbuf,"ftpput -u root -p y42j/4cj84 %s /root/ccs.image %s",
|
|
|
CCSIpAddress, SourcePath);
|
|
|
|
|
|
- if(system(ftpcmdbuf) != 0)
|
|
|
+ if(system((char*)ftpcmdbuf) != 0)
|
|
|
{
|
|
|
DEBUG_ERROR("Update CCS NG - FTP put CCS upgrade image to CCS board %d fail\n", TargetAddr);
|
|
|
return FAIL;
|