-2
_export int DSPCmdOut(COMMAND_DESCRIPTOR *cmd)
{
cmd.u[0] = CMD_SG_SYNCHED;
cmd.u[1] = uThisStation;
cmd.u[2] = iMode;
DSPCmdOut(&cmd);
return 0;
}
_export int DSPCmdOut(COMMAND_DESCRIPTOR *cmd)
{
if(S->uCMD > (MAX_CMD-1))
return -1;
S->cmd[S->uCMD] = *cmd;
S->uCMD++;
sprintf (cLogLine, "%u,%u,%u: cmd data", cmd.u[0],cmd.u[1],cmd.u[2]);
WriteLine (uhGDSLogFile, cLogLine, strlen(cLogLine));
return 0;
}
任何數據,我得到這個錯誤而編譯:沒有得到中的sprintf
Left operand of . has incompatible type 'pointer to COMMAND_DESCRIPTOR'.