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
dd0e2616
Commit
dd0e2616
authored
Jun 19, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Use the now available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ec29d40e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
main.c
tools/winebuild/main.c
+1
-1
utils.c
tools/winebuild/utils.c
+1
-1
No files found.
tools/winebuild/main.c
View file @
dd0e2616
...
@@ -225,7 +225,7 @@ static void set_target( const char *target )
...
@@ -225,7 +225,7 @@ static void set_target( const char *target )
/* get the OS part */
/* get the OS part */
target_platform
=
PLATFORM_UNSPECIFIED
;
/* default value */
target_platform
=
PLATFORM_UNSPECIFIED
;
/* default value */
for
(
i
=
0
;
i
<
sizeof
(
platform_names
)
/
sizeof
(
platform_names
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
platform_names
);
i
++
)
{
{
if
(
!
strncmp
(
platform_names
[
i
].
name
,
platform
,
strlen
(
platform_names
[
i
].
name
)
))
if
(
!
strncmp
(
platform_names
[
i
].
name
,
platform
,
strlen
(
platform_names
[
i
].
name
)
))
{
{
...
...
tools/winebuild/utils.c
View file @
dd0e2616
...
@@ -943,7 +943,7 @@ int get_cpu_from_name( const char *name )
...
@@ -943,7 +943,7 @@ int get_cpu_from_name( const char *name )
{
{
unsigned
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
cpu_names
)
/
sizeof
(
cpu_names
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
cpu_names
);
i
++
)
if
(
!
strcmp
(
cpu_names
[
i
].
name
,
name
))
return
cpu_names
[
i
].
cpu
;
if
(
!
strcmp
(
cpu_names
[
i
].
name
,
name
))
return
cpu_names
[
i
].
cpu
;
return
-
1
;
return
-
1
;
}
}
...
...
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