Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1916cb1e
Commit
1916cb1e
authored
Aug 26, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmc: Get rid of xmalloc casts.
parent
1659f53c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
mcy.y
tools/wmc/mcy.y
+1
-1
utils.c
tools/wmc/utils.c
+3
-3
wmc.c
tools/wmc/wmc.c
+1
-1
No files found.
tools/wmc/mcy.y
View file @
1916cb1e
...
...
@@ -437,7 +437,7 @@ static void do_add_token(tok_e type, token_t *tok, const char *code)
static lanmsg_t *new_lanmsg(lan_cp_t *lcp, WCHAR *msg)
{
lanmsg_t *lmp =
(lanmsg_t *)
xmalloc(sizeof(lanmsg_t));
lanmsg_t *lmp = xmalloc(sizeof(lanmsg_t));
lmp->lan = lcp->language;
lmp->cp = lcp->codepage;
lmp->msg = msg;
...
...
tools/wmc/utils.c
View file @
1916cb1e
...
...
@@ -128,7 +128,7 @@ char *dup_basename(const char *name, const char *ext)
namelen
=
strlen
(
name
);
/* +4 for later extension and +1 for '\0' */
base
=
(
char
*
)
xmalloc
(
namelen
+
4
+
1
);
base
=
xmalloc
(
namelen
+
4
+
1
);
strcpy
(
base
,
name
);
if
(
!
strcasecmp
(
name
+
namelen
-
extlen
,
ext
))
{
...
...
@@ -172,7 +172,7 @@ char *xstrdup(const char *str)
char
*
s
;
assert
(
str
!=
NULL
);
s
=
(
char
*
)
xmalloc
(
strlen
(
str
)
+
1
);
s
=
xmalloc
(
strlen
(
str
)
+
1
);
return
strcpy
(
s
,
str
);
}
...
...
@@ -198,7 +198,7 @@ WCHAR *xunistrdup(const WCHAR * str)
WCHAR
*
s
;
assert
(
str
!=
NULL
);
s
=
(
WCHAR
*
)
xmalloc
((
unistrlen
(
str
)
+
1
)
*
sizeof
(
WCHAR
));
s
=
xmalloc
((
unistrlen
(
str
)
+
1
)
*
sizeof
(
WCHAR
));
return
unistrcpy
(
s
,
str
);
}
...
...
tools/wmc/wmc.c
View file @
1916cb1e
...
...
@@ -152,7 +152,7 @@ int main(int argc,char *argv[])
cmdlen
=
4
;
/* for "wmc " */
for
(
i
=
1
;
i
<
argc
;
i
++
)
cmdlen
+=
strlen
(
argv
[
i
])
+
1
;
cmdline
=
(
char
*
)
xmalloc
(
cmdlen
);
cmdline
=
xmalloc
(
cmdlen
);
strcpy
(
cmdline
,
"wmc "
);
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment