From: Jérôme Gardou Date: Tue, 9 Sep 2014 17:39:01 +0000 (+0000) Subject: [SPEC2DEF] X-Git-Tag: backups/0.3.17@66124~625 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=1fdfbceee50f79b237863850e05ac1e4034c2ad1 [SPEC2DEF] - Fix GCC warning (weird doubled arguments for fprintf format) svn path=/trunk/; revision=64093 --- diff --git a/reactos/tools/spec2def/spec2def.c b/reactos/tools/spec2def/spec2def.c index a878e3d6565..0bb66a0bc06 100644 --- a/reactos/tools/spec2def/spec2def.c +++ b/reactos/tools/spec2def/spec2def.c @@ -305,32 +305,27 @@ OutputLine_asmstub(FILE *fileDest, EXPORT *pexp) else if (giArch != ARCH_X86) { sprintf(szNameBuffer, "_stub_%.*s", - pexp->strName.len, pexp->strName.buf, pexp->strName.len, pexp->strName.buf); } else if (pexp->nCallingConvention == CC_STDCALL) { sprintf(szNameBuffer, "__stub_%.*s@%d", - pexp->strName.len, pexp->strName.buf, pexp->nStackBytes, pexp->strName.len, pexp->strName.buf, pexp->nStackBytes); } else if (pexp->nCallingConvention == CC_FASTCALL) { sprintf(szNameBuffer, "@_stub_%.*s@%d", - pexp->strName.len, pexp->strName.buf, pexp->nStackBytes, pexp->strName.len, pexp->strName.buf, pexp->nStackBytes); } else if (pexp->nCallingConvention == CC_CDECL || pexp->nCallingConvention == CC_STUB) { sprintf(szNameBuffer, "__stub_%.*s", - pexp->strName.len, pexp->strName.buf, pexp->strName.len, pexp->strName.buf); } else if (pexp->nCallingConvention == CC_EXTERN) { sprintf(szNameBuffer, "__stub_%.*s", - pexp->strName.len, pexp->strName.buf, pexp->strName.len, pexp->strName.buf); }