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
f95be92d
Commit
f95be92d
authored
Oct 15, 2003
by
Daniel Marmier
Committed by
Alexandre Julliard
Oct 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warnings with gcc option "-Wwrite-strings".
parent
3156df85
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
15 deletions
+17
-15
file.c
dlls/msvcrt/file.c
+1
-1
cpp.c
dlls/msvcrt/tests/cpp.c
+2
-1
port.h
include/wine/port.h
+1
-1
spawn.c
libs/port/spawn.c
+3
-3
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+1
-1
utils.c
tools/winegcc/utils.c
+3
-3
utils.h
tools/winegcc/utils.h
+3
-3
winewrap.c
tools/winegcc/winewrap.c
+3
-2
No files found.
dlls/msvcrt/file.c
View file @
f95be92d
...
...
@@ -2398,7 +2398,7 @@ void MSVCRT_setbuf(MSVCRT_FILE* file, char *buf)
char
*
MSVCRT_tmpnam
(
char
*
s
)
{
char
tmpbuf
[
MAX_PATH
];
char
*
prefix
=
"TMP"
;
c
onst
c
har
*
prefix
=
"TMP"
;
if
(
!
GetTempPathA
(
MAX_PATH
,
tmpbuf
)
||
!
GetTempFileNameA
(
tmpbuf
,
prefix
,
0
,
MSVCRT_tmpname
))
{
...
...
dlls/msvcrt/tests/cpp.c
View file @
f95be92d
...
...
@@ -335,12 +335,13 @@ static void test_exception(void)
if
(
pe
)
{
/* vector dtor, multiple elements */
char
name
[]
=
"a constant"
;
*
((
int
*
)
pe
)
=
3
;
pe
=
(
exception
*
)((
int
*
)
pe
+
1
);
call_func2
(
pexception_ctor
,
&
pe
[
0
],
&
e_name
);
call_func2
(
pexception_ctor
,
&
pe
[
1
],
&
e_name
);
call_func2
(
pexception_ctor
,
&
pe
[
2
],
&
e_name
);
pe
[
3
].
name
=
"a constant"
;
pe
[
3
].
name
=
name
;
pe
[
3
].
do_free
=
1
;
/* Crash if we try to free this */
call_func2
(
pexception_vector_dtor
,
pe
,
3
);
/* Should delete all 3 and then pe block */
}
...
...
include/wine/port.h
View file @
f95be92d
...
...
@@ -280,7 +280,7 @@ extern int mkstemps(char *template, int suffix_len);
# define _P_DETACH 4
#endif
#ifndef HAVE_SPAWNVP
extern
int
spawnvp
(
int
mode
,
const
char
*
cmdname
,
c
har
*
const
argv
[]);
extern
int
spawnvp
(
int
mode
,
const
char
*
cmdname
,
c
onst
char
*
const
argv
[]);
#endif
/* Interlocked functions */
...
...
libs/port/spawn.c
View file @
f95be92d
...
...
@@ -32,7 +32,7 @@
#endif
#ifndef HAVE_SPAWNVP
int
spawnvp
(
int
mode
,
const
char
*
cmdname
,
char
*
const
argv
[])
int
spawnvp
(
int
mode
,
const
char
*
cmdname
,
c
onst
c
har
*
const
argv
[])
{
#ifndef HAVE__SPAWNVP
int
pid
=
0
,
status
,
wret
;
...
...
@@ -40,7 +40,7 @@ int spawnvp(int mode, const char *cmdname, char *const argv[])
if
(
mode
==
_P_OVERLAY
)
{
execvp
(
cmdname
,
argv
);
execvp
(
cmdname
,
(
char
**
)
argv
);
return
-
1
;
/* if we get here it failed */
}
...
...
@@ -54,7 +54,7 @@ int spawnvp(int mode, const char *cmdname, char *const argv[])
if
(
pid
==
0
)
{
sigaction
(
SIGPIPE
,
&
dfl_act
,
NULL
);
execvp
(
cmdname
,
argv
);
execvp
(
cmdname
,
(
char
**
)
argv
);
_exit
(
1
);
}
...
...
programs/winemenubuilder/winemenubuilder.c
View file @
f95be92d
...
...
@@ -578,7 +578,7 @@ static int fork_and_wait( char *linker, char *link_name, char *path,
char
*
workdir
,
char
*
description
)
{
int
pos
=
0
;
char
*
argv
[
20
];
c
onst
c
har
*
argv
[
20
];
WINE_TRACE
(
"linker app='%s' link='%s' mode=%s "
"path='%s' args='%s' icon='%s' workdir='%s' descr='%s'
\n
"
,
...
...
tools/winegcc/utils.c
View file @
f95be92d
...
...
@@ -99,7 +99,7 @@ void strarray_free(strarray* arr)
free
(
arr
);
}
void
strarray_add
(
strarray
*
arr
,
char
*
str
)
void
strarray_add
(
strarray
*
arr
,
c
onst
c
har
*
str
)
{
if
(
arr
->
size
==
arr
->
maximum
)
{
...
...
@@ -109,10 +109,10 @@ void strarray_add(strarray* arr, char* str)
arr
->
base
[
arr
->
size
++
]
=
str
;
}
void
spawn
(
strarray
*
arr
)
void
spawn
(
const
strarray
*
arr
)
{
int
i
,
status
;
char
**
argv
=
arr
->
base
;
c
onst
c
har
**
argv
=
arr
->
base
;
if
(
verbose
)
{
...
...
tools/winegcc/utils.h
View file @
f95be92d
...
...
@@ -30,13 +30,13 @@ char *strmake(const char *fmt, ...);
typedef
struct
{
size_t
maximum
;
size_t
size
;
char
**
base
;
c
onst
c
har
**
base
;
}
strarray
;
strarray
*
strarray_alloc
(
void
);
void
strarray_free
(
strarray
*
arr
);
void
strarray_add
(
strarray
*
arr
,
char
*
str
);
void
strarray_add
(
strarray
*
arr
,
c
onst
c
har
*
str
);
void
spawn
(
strarray
*
arr
);
void
spawn
(
const
strarray
*
arr
);
extern
int
verbose
;
tools/winegcc/winewrap.c
View file @
f95be92d
...
...
@@ -215,7 +215,7 @@ static const char *wrapper_code =
"}
\n
"
;
static
char
*
output_name
=
"a.out"
;
static
c
onst
c
har
*
output_name
=
"a.out"
;
static
strarray
*
arh_files
,
*
dll_files
,
*
lib_files
,
*
llib_paths
,
*
lib_paths
,
*
obj_files
;
static
int
keep_generated
=
0
;
...
...
@@ -345,7 +345,8 @@ static void add_lib_file(const char* library)
static
void
create_the_wrapper
(
char
*
base_file
,
char
*
base_name
,
char
*
app_name
,
int
gui_mode
)
{
char
*
wrp_temp_name
,
*
wspec_name
,
*
wspec_c_name
,
*
wspec_o_name
;
char
*
wrap_c_name
,
*
wrap_o_name
,
*
dlls
=
""
;
char
*
wrap_c_name
,
*
wrap_o_name
;
const
char
*
dlls
=
""
;
strarray
*
wwrap_args
,
*
wspec_args
,
*
wcomp_args
,
*
wlink_args
;
int
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