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
7832562e
Commit
7832562e
authored
Oct 21, 2003
by
Daniel Marmier
Committed by
Alexandre Julliard
Oct 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warnings with gcc option "-Wwrite-strings".
parent
2c39191e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
27 deletions
+27
-27
smb.c
files/smb.c
+2
-2
xfont.c
graphics/x11drv/xfont.c
+3
-3
wine.xpm
include/bitmaps/wine.xpm
+1
-1
ppl.l
libs/wpp/ppl.l
+10
-10
preproc.c
libs/wpp/preproc.c
+3
-3
registry.c
misc/registry.c
+6
-6
unicode.c
server/unicode.c
+1
-1
unicode.h
server/unicode.h
+1
-1
No files found.
files/smb.c
View file @
7832562e
...
...
@@ -375,7 +375,7 @@ err:
#define NB_SESSION_REQ 0x81
/* RFC 1002, section 4.3.2 */
static
BOOL
NB_SessionReq
(
int
fd
,
c
har
*
called
,
char
*
calling
)
static
BOOL
NB_SessionReq
(
int
fd
,
c
onst
char
*
called
,
const
char
*
calling
)
{
unsigned
char
buffer
[
0x100
];
int
len
=
0
,
r
;
...
...
@@ -538,7 +538,7 @@ static BOOL NB_Transaction(int fd, struct NB_Buffer *in, struct NB_Buffer *out)
static
DWORD
SMB_GetError
(
unsigned
char
*
buffer
)
{
char
*
err_class
;
c
onst
c
har
*
err_class
;
switch
(
buffer
[
SMB_ERRCLASS
])
{
...
...
graphics/x11drv/xfont.c
View file @
7832562e
...
...
@@ -231,7 +231,7 @@ static const SuffixCharset sufch_any[] = {
typedef
struct
__fet
{
LP
STR
prefix
;
LP
CSTR
prefix
;
const
SuffixCharset
*
sufch
;
struct
__fet
*
next
;
}
fontEncodingTemplate
;
...
...
@@ -867,7 +867,7 @@ static BOOL LFD_ComposeLFD( const fontObject* fo,
INT
height
,
LPSTR
lpLFD
,
UINT
uRelax
)
{
int
i
,
h
;
c
har
*
any
=
"*"
;
c
onst
char
*
any
=
"*"
;
char
h_string
[
64
],
resx_string
[
64
],
resy_string
[
64
];
LFD
aLFD
;
...
...
@@ -1002,7 +1002,7 @@ static BOOL LFD_ComposeLFD( const fontObject* fo,
/* spacing */
{
char
*
w
;
c
onst
c
har
*
w
;
if
(
fo
->
fi
->
fi_flags
&
FI_FIXEDPITCH
)
w
=
(
fo
->
fi
->
fi_flags
&
FI_FIXEDEX
)
?
"c"
:
"m"
;
...
...
include/bitmaps/wine.xpm
View file @
7832562e
/* XPM */
static char * wine_xpm[] = {
static c
onst c
har * wine_xpm[] = {
"48 48 159 2",
" c None",
". c #010101",
...
...
libs/wpp/ppl.l
View file @
7832562e
...
...
@@ -230,14 +230,14 @@ typedef struct macexpstackentry {
* Prototypes
*/
static void newline(int);
static int make_number(int radix, YYSTYPE *val, char *str, int len);
static void put_buffer(char *s, int len);
static int make_number(int radix, YYSTYPE *val, c
onst c
har *str, int len);
static void put_buffer(c
onst c
har *s, int len);
/* Buffer management */
static void push_buffer(pp_entry_t *ppp, char *filename, char *incname, int pop);
static bufferstackentry_t *pop_buffer(void);
/* String functions */
static void new_string(void);
static void add_string(char *str, int len);
static void add_string(c
onst c
har *str, int len);
static char *get_string(void);
static void put_string(void);
static int string_start(void);
...
...
@@ -246,7 +246,7 @@ static void push_macro(pp_entry_t *ppp);
static macexpstackentry_t *top_macro(void);
static macexpstackentry_t *pop_macro(void);
static void free_macro(macexpstackentry_t *mep);
static void add_text_to_macro(char *text, int len);
static void add_text_to_macro(c
onst c
har *text, int len);
static void macro_add_arg(int last);
static void macro_add_expansion(void);
/* Expansion */
...
...
@@ -778,7 +778,7 @@ static void newline(int dowrite)
*
*-------------------------------------------------------------------------
*/
static int make_number(int radix, YYSTYPE *val, char *str, int len)
static int make_number(int radix, YYSTYPE *val, c
onst c
har *str, int len)
{
int is_l = 0;
int is_ll = 0;
...
...
@@ -849,7 +849,7 @@ static int make_number(int radix, YYSTYPE *val, char *str, int len)
*/
static void expand_special(pp_entry_t *ppp)
{
char *dbgtext = "?";
c
onst c
har *dbgtext = "?";
static char *buf = NULL;
assert(ppp->type == def_special);
...
...
@@ -906,7 +906,7 @@ static int curdef_idx = 0;
static int curdef_alloc = 0;
static char *curdef_text = NULL;
static void add_text(char *str, int len)
static void add_text(c
onst c
har *str, int len)
{
if(len == 0)
return;
...
...
@@ -1106,7 +1106,7 @@ static void new_string(void)
str_startline = pp_status.line_number;
}
static void add_string(char *str, int len)
static void add_string(c
onst c
har *str, int len)
{
if(len == 0)
return;
...
...
@@ -1307,7 +1307,7 @@ static void free_macro(macexpstackentry_t *mep)
free(mep);
}
static void add_text_to_macro(char *text, int len)
static void add_text_to_macro(c
onst c
har *text, int len)
{
macexpstackentry_t *mep = top_macro();
...
...
@@ -1388,7 +1388,7 @@ static void macro_add_expansion(void)
* Output management
*-------------------------------------------------------------------------
*/
static void put_buffer(char *s, int len)
static void put_buffer(c
onst c
har *s, int len)
{
if(top_macro())
add_text_to_macro(s, len);
...
...
libs/wpp/preproc.c
View file @
7832562e
...
...
@@ -228,7 +228,7 @@ pp_entry_t *pp_add_define(char *def, char *text)
ppp
->
ident
=
def
;
ppp
->
type
=
def_define
;
ppp
->
subst
.
text
=
text
;
ppp
->
filename
=
pp_
status
.
input
?
pp_xstrdup
(
pp_status
.
input
)
:
"<internal or cmdline>"
;
ppp
->
filename
=
pp_
xstrdup
(
pp_status
.
input
?
pp_status
.
input
:
"<internal or cmdline>"
)
;
ppp
->
linenumber
=
pp_status
.
input
?
pp_status
.
line_number
:
0
;
ppp
->
next
=
pp_def_state
->
defines
[
idx
];
pp_def_state
->
defines
[
idx
]
=
ppp
;
...
...
@@ -272,7 +272,7 @@ pp_entry_t *pp_add_macro(char *id, marg_t *args[], int nargs, mtext_t *exp)
ppp
->
margs
=
args
;
ppp
->
nargs
=
nargs
;
ppp
->
subst
.
mtext
=
exp
;
ppp
->
filename
=
pp_
status
.
input
?
pp_xstrdup
(
pp_status
.
input
)
:
"<internal or cmdline>"
;
ppp
->
filename
=
pp_
xstrdup
(
pp_status
.
input
?
pp_status
.
input
:
"<internal or cmdline>"
)
;
ppp
->
linenumber
=
pp_status
.
input
?
pp_status
.
line_number
:
0
;
ppp
->
next
=
pp_def_state
->
defines
[
idx
];
pp_def_state
->
defines
[
idx
]
=
ppp
;
...
...
@@ -467,7 +467,7 @@ FILE *pp_open_include(const char *name, int search, char **newpath)
*
*-------------------------------------------------------------------------
*/
static
c
har
*
pp_if_state_str
[]
=
{
static
c
onst
char
*
const
pp_if_state_str
[]
=
{
"if_false"
,
"if_true"
,
"if_elif"
,
...
...
misc/registry.c
View file @
7832562e
...
...
@@ -125,7 +125,7 @@ static LPWSTR _strdupnAtoW(LPCSTR strA,size_t lenA)
/* dump a Unicode string with proper escaping [Internal] */
/* FIXME: this code duplicates server/unicode.c */
static
int
_dump_strW
(
const
WCHAR
*
str
,
size_t
len
,
FILE
*
f
,
char
escape
[
2
])
static
int
_dump_strW
(
const
WCHAR
*
str
,
size_t
len
,
FILE
*
f
,
c
onst
c
har
escape
[
2
])
{
static
const
char
escapes
[
32
]
=
".......abtnvfr.............e...."
;
char
buffer
[
256
];
...
...
@@ -168,7 +168,7 @@ static int _dump_strW(const WCHAR *str,size_t len,FILE *f,char escape[2])
}
/* convert ansi string to unicode and dump with proper escaping [Internal] */
static
int
_dump_strAtoW
(
LPCSTR
strA
,
size_t
len
,
FILE
*
f
,
char
escape
[
2
])
static
int
_dump_strAtoW
(
LPCSTR
strA
,
size_t
len
,
FILE
*
f
,
c
onst
c
har
escape
[
2
])
{
WCHAR
*
strW
;
int
ret
;
...
...
@@ -688,7 +688,7 @@ static int _w95_dump_dkv(_w95dkh *dkh,int nrLS,int nrMS,FILE *f)
/******************************************************************************
* _w95_dump_dke [Internal]
*/
static
int
_w95_dump_dke
(
LPSTR
key_name
,
_w95creg
*
creg
,
_w95rgkn
*
rgkn
,
_w95dke
*
dke
,
FILE
*
f
,
int
level
)
static
int
_w95_dump_dke
(
LP
C
STR
key_name
,
_w95creg
*
creg
,
_w95rgkn
*
rgkn
,
_w95dke
*
dke
,
FILE
*
f
,
int
level
)
{
_w95dkh
*
dkh
;
LPSTR
new_key_name
=
NULL
;
...
...
@@ -936,7 +936,7 @@ static int _nt_dump_vk(LPSTR key_name, char *base, nt_vk *vk,FILE *f)
}
/* it's called from _nt_dump_lf() */
static
int
_nt_dump_nk
(
LPSTR
key_name
,
char
*
base
,
nt_nk
*
nk
,
FILE
*
f
,
int
level
);
static
int
_nt_dump_nk
(
LP
C
STR
key_name
,
char
*
base
,
nt_nk
*
nk
,
FILE
*
f
,
int
level
);
/*
* get the subkeys
...
...
@@ -947,7 +947,7 @@ static int _nt_dump_nk(LPSTR key_name,char *base,nt_nk *nk,FILE *f,int level);
* exception: if the id is 'il' there are no hash values and every
* dword is a offset
*/
static
int
_nt_dump_lf
(
LPSTR
key_name
,
char
*
base
,
int
subkeys
,
nt_lf
*
lf
,
FILE
*
f
,
int
level
)
static
int
_nt_dump_lf
(
LP
C
STR
key_name
,
char
*
base
,
int
subkeys
,
nt_lf
*
lf
,
FILE
*
f
,
int
level
)
{
int
i
;
...
...
@@ -1002,7 +1002,7 @@ error:
}
/* _nt_dump_nk [Internal] */
static
int
_nt_dump_nk
(
LPSTR
key_name
,
char
*
base
,
nt_nk
*
nk
,
FILE
*
f
,
int
level
)
static
int
_nt_dump_nk
(
LP
C
STR
key_name
,
char
*
base
,
nt_nk
*
nk
,
FILE
*
f
,
int
level
)
{
unsigned
int
n
;
DWORD
*
vl
;
...
...
server/unicode.c
View file @
7832562e
...
...
@@ -27,7 +27,7 @@
#include "unicode.h"
/* dump a Unicode string with proper escaping */
int
dump_strW
(
const
WCHAR
*
str
,
size_t
len
,
FILE
*
f
,
char
escape
[
2
]
)
int
dump_strW
(
const
WCHAR
*
str
,
size_t
len
,
FILE
*
f
,
c
onst
c
har
escape
[
2
]
)
{
static
const
char
escapes
[
32
]
=
".......abtnvfr.............e...."
;
char
buffer
[
256
];
...
...
server/unicode.h
View file @
7832562e
...
...
@@ -33,6 +33,6 @@ static inline WCHAR *strdupW( const WCHAR *str )
return
memdup
(
str
,
len
);
}
extern
int
dump_strW
(
const
WCHAR
*
str
,
size_t
len
,
FILE
*
f
,
char
escape
[
2
]
);
extern
int
dump_strW
(
const
WCHAR
*
str
,
size_t
len
,
FILE
*
f
,
c
onst
c
har
escape
[
2
]
);
#endif
/* __WINE_SERVER_UNICODE_H */
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