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
5bcf35a3
Commit
5bcf35a3
authored
Sep 19, 2003
by
Richard Cohen
Committed by
Alexandre Julliard
Sep 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add printf format attributes & fix the warnings.
parent
99b0e8fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
build.h
tools/winebuild/build.h
+12
-4
res16.c
tools/winebuild/res16.c
+1
-1
res32.c
tools/winebuild/res32.c
+1
-1
No files found.
tools/winebuild/build.h
View file @
5bcf35a3
...
...
@@ -126,14 +126,22 @@ typedef struct
/* global functions */
#ifndef __GNUC__
#define __attribute__(X)
#endif
extern
void
*
xmalloc
(
size_t
size
);
extern
void
*
xrealloc
(
void
*
ptr
,
size_t
size
);
extern
char
*
xstrdup
(
const
char
*
str
);
extern
char
*
strupper
(
char
*
s
);
extern
void
fatal_error
(
const
char
*
msg
,
...
);
extern
void
fatal_perror
(
const
char
*
msg
,
...
);
extern
void
error
(
const
char
*
msg
,
...
);
extern
void
warning
(
const
char
*
msg
,
...
);
extern
void
fatal_error
(
const
char
*
msg
,
...
)
__attribute__
((
__format__
(
__printf__
,
1
,
2
)));
extern
void
fatal_perror
(
const
char
*
msg
,
...
)
__attribute__
((
__format__
(
__printf__
,
1
,
2
)));
extern
void
error
(
const
char
*
msg
,
...
)
__attribute__
((
__format__
(
__printf__
,
1
,
2
)));
extern
void
warning
(
const
char
*
msg
,
...
)
__attribute__
((
__format__
(
__printf__
,
1
,
2
)));
extern
void
output_standard_file_header
(
FILE
*
outfile
);
extern
FILE
*
open_input_file
(
const
char
*
srcdir
,
const
char
*
name
);
extern
void
close_input_file
(
FILE
*
file
);
...
...
tools/winebuild/res16.c
View file @
5bcf35a3
...
...
@@ -173,7 +173,7 @@ void load_res16_file( const char *name )
if
((
fd
=
open
(
name
,
O_RDONLY
))
==
-
1
)
fatal_perror
(
"Cannot open %s"
,
name
);
if
((
fstat
(
fd
,
&
st
)
==
-
1
))
fatal_perror
(
"Cannot stat %s"
,
name
);
if
(
!
st
.
st_size
)
fatal_error
(
"%s is an empty file
\n
"
);
if
(
!
st
.
st_size
)
fatal_error
(
"%s is an empty file
\n
"
,
name
);
#ifdef HAVE_MMAP
if
((
base
=
mmap
(
NULL
,
st
.
st_size
,
PROT_READ
,
MAP_PRIVATE
,
fd
,
0
))
==
(
void
*
)
-
1
)
#endif
/* HAVE_MMAP */
...
...
tools/winebuild/res32.c
View file @
5bcf35a3
...
...
@@ -216,7 +216,7 @@ int load_res32_file( const char *name )
if
((
fd
=
open
(
name
,
O_RDONLY
))
==
-
1
)
fatal_perror
(
"Cannot open %s"
,
name
);
if
((
fstat
(
fd
,
&
st
)
==
-
1
))
fatal_perror
(
"Cannot stat %s"
,
name
);
if
(
!
st
.
st_size
)
fatal_error
(
"%s is an empty file
\n
"
);
if
(
!
st
.
st_size
)
fatal_error
(
"%s is an empty file
\n
"
,
name
);
#ifdef HAVE_MMAP
if
((
base
=
mmap
(
NULL
,
st
.
st_size
,
PROT_READ
,
MAP_PRIVATE
,
fd
,
0
))
==
(
void
*
)
-
1
)
#endif
/* HAVE_MMAP */
...
...
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