mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 01:44:21 +00:00
[SPEC2DEF]
- Fix warnings svn path=/trunk/; revision=59537
This commit is contained in:
parent
29cb1bacd5
commit
cb5bf8777e
|
@ -10,7 +10,7 @@
|
|||
typedef struct
|
||||
{
|
||||
char *pcName;
|
||||
size_t nNameLength;
|
||||
int nNameLength;
|
||||
char *pcRedirection;
|
||||
int nRedirectionLength;
|
||||
int nCallingConvention;
|
||||
|
@ -315,7 +315,7 @@ void
|
|||
PrintName(FILE *fileDest, EXPORT *pexp, char *pszPrefix, int fRedir, int fDeco)
|
||||
{
|
||||
char *pcName = fRedir ? pexp->pcRedirection : pexp->pcName;
|
||||
size_t nNameLength = fRedir ? pexp->nRedirectionLength : pexp->nNameLength;
|
||||
int nNameLength = fRedir ? pexp->nRedirectionLength : pexp->nNameLength;
|
||||
|
||||
/* Handle autoname */
|
||||
if (nNameLength == 1 && pcName[0] == '@')
|
||||
|
@ -649,10 +649,10 @@ ParseFile(char* pcStart, FILE *fileDest, PFNOUTLINE OutputLine)
|
|||
{
|
||||
/* Check for stdcall name */
|
||||
char *p = strchr(pc, '@');
|
||||
if (p && ((size_t)(p - pc) < exp.nNameLength))
|
||||
if (p && (p - pc < exp.nNameLength))
|
||||
{
|
||||
int i;
|
||||
exp.nNameLength = p - pc;
|
||||
exp.nNameLength = (int)(p - pc);
|
||||
if (exp.nNameLength < 1)
|
||||
{
|
||||
fprintf(stderr, "error, @ in line %d\n", nLine);
|
||||
|
@ -669,7 +669,8 @@ ParseFile(char* pcStart, FILE *fileDest, PFNOUTLINE OutputLine)
|
|||
}
|
||||
|
||||
/* Get optional redirection */
|
||||
if ((pc = NextToken(pc)))
|
||||
pc = NextToken(pc);
|
||||
if (pc)
|
||||
{
|
||||
exp.pcRedirection = pc;
|
||||
exp.nRedirectionLength = TokenLength(pc);
|
||||
|
|
Loading…
Reference in a new issue