Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e452c246
Commit
e452c246
authored
Jun 27, 2005
by
Andreas Mohr
Committed by
Alexandre Julliard
Jun 27, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Constify all needlessly non-const winecfg structs.
parent
2510658d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
22 deletions
+22
-22
appdefaults.c
programs/winecfg/appdefaults.c
+1
-1
audio.c
programs/winecfg/audio.c
+2
-2
drivedetect.c
programs/winecfg/drivedetect.c
+6
-6
properties.c
programs/winecfg/properties.c
+9
-9
properties.h
programs/winecfg/properties.h
+4
-4
No files found.
programs/winecfg/appdefaults.c
View file @
e452c246
...
...
@@ -291,7 +291,7 @@ static void on_remove_app_click(HWND dialog)
static
void
on_winver_change
(
HWND
dialog
)
{
int
selection
=
SendDlgItemMessage
(
dialog
,
IDC_WINVER
,
CB_GETCURSEL
,
0
,
0
);
VERSION_DESC
*
ver
=
getWinVersions
();
const
VERSION_DESC
*
ver
=
getWinVersions
();
if
(
selection
==
0
)
{
...
...
programs/winecfg/audio.c
View file @
e452c246
...
...
@@ -110,7 +110,7 @@ static const char *audioAutoDetect(void)
if
(
!
stat
(
"/proc/asound"
,
&
buf
))
{
driversFound
[
numFound
]
=
"alsa"
;
name
[
numFound
]
=
"A
lsa
"
;
name
[
numFound
]
=
"A
LSA
"
;
numFound
++
;
}
...
...
@@ -128,7 +128,7 @@ static const char *audioAutoDetect(void)
if
(
!
spawnvp
(
_P_WAIT
,
"/bin/sh"
,
argv_new
))
{
driversFound
[
numFound
]
=
"jack"
;
name
[
numFound
]
=
"
jack
"
;
name
[
numFound
]
=
"
JACK
"
;
numFound
++
;
}
...
...
programs/winecfg/drivedetect.c
View file @
e452c246
...
...
@@ -44,13 +44,13 @@ static long working_mask = 0;
#ifdef HAVE_MNTENT_H
static
DEV_NODES
sDeviceNodes
[]
=
{
static
const
DEV_NODES
sDeviceNodes
[]
=
{
{
"/dev/fd"
,
DRIVE_REMOVABLE
},
{
"/dev/cdrom"
,
DRIVE_CDROM
},
{
""
,
0
}
};
static
const
char
*
ignored_fstypes
[]
=
{
static
const
char
*
const
ignored_fstypes
[]
=
{
"devpts"
,
"tmpfs"
,
"proc"
,
...
...
@@ -61,7 +61,7 @@ static const char *ignored_fstypes[] = {
NULL
};
static
const
char
*
ignored_mnt_dirs
[]
=
{
static
const
char
*
const
ignored_mnt_dirs
[]
=
{
"/boot"
,
NULL
};
...
...
@@ -82,7 +82,7 @@ static int try_dev_node(char *dev)
static
BOOL
should_ignore_fstype
(
char
*
type
)
{
const
char
**
s
;
const
char
*
const
*
s
;
for
(
s
=
ignored_fstypes
;
*
s
;
s
++
)
if
(
!
strcmp
(
*
s
,
type
))
return
TRUE
;
...
...
@@ -92,7 +92,7 @@ static BOOL should_ignore_fstype(char *type)
static
BOOL
should_ignore_mnt_dir
(
char
*
dir
)
{
const
char
**
s
;
const
char
*
const
*
s
;
for
(
s
=
ignored_mnt_dirs
;
*
s
;
s
++
)
if
(
!
strcmp
(
*
s
,
dir
))
return
TRUE
;
...
...
@@ -138,7 +138,7 @@ static void report_error(int code)
case
FSTAB_OPEN
:
if
(
gui_mode
)
{
static
const
char
*
s
=
"Could not open your mountpoint description table.
\n\n
Opening of /etc/fstab failed: %s"
;
static
const
char
s
[]
=
"Could not open your mountpoint description table.
\n\n
Opening of /etc/fstab failed: %s"
;
len
=
snprintf
(
NULL
,
0
,
s
,
strerror
(
errno
));
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
+
1
);
snprintf
(
buffer
,
len
,
s
,
strerror
(
errno
));
...
...
programs/winecfg/properties.c
View file @
e452c246
...
...
@@ -24,7 +24,7 @@
#include "properties.h"
static
VERSION_DESC
sWinVersions
[]
=
{
static
const
VERSION_DESC
sWinVersions
[]
=
{
{
"win2003"
,
"Windows 2003"
},
{
"winxp"
,
"Windows XP"
},
{
"win2k"
,
"Windows 2000"
},
...
...
@@ -39,7 +39,7 @@ static VERSION_DESC sWinVersions[] = {
{
""
,
""
}
};
static
DLL_DESC
sDLLType
[]
=
{
static
const
DLL_DESC
sDLLType
[]
=
{
{
"oleaut32"
,
DLL_BUILTIN
},
{
"ole32"
,
DLL_BUILTIN
},
{
"commdlg"
,
DLL_BUILTIN
},
...
...
@@ -57,12 +57,12 @@ static DLL_DESC sDLLType[] = {
{
""
,
-
1
}
};
static
AUDIO_DRIVER
sAudioDrivers
[]
=
{
{
"A
lsa
"
,
"alsa"
},
static
const
AUDIO_DRIVER
sAudioDrivers
[]
=
{
{
"A
LSA
"
,
"alsa"
},
{
"aRts"
,
"arts"
},
{
"OSS"
,
"oss"
},
{
"J
ack
"
,
"jack"
},
{
"N
as
"
,
"nas"
},
{
"J
ACK
"
,
"jack"
},
{
"N
AS
"
,
"nas"
},
{
"Audio IO(Solaris)"
,
"audioio"
},
{
"Disable sound"
,
""
},
{
""
,
""
}
...
...
@@ -72,7 +72,7 @@ static AUDIO_DRIVER sAudioDrivers[] = {
/*****************************************************************************
*/
VERSION_DESC
*
getWinVersions
(
void
)
const
VERSION_DESC
*
getWinVersions
(
void
)
{
return
sWinVersions
;
}
...
...
@@ -80,14 +80,14 @@ VERSION_DESC* getWinVersions(void)
/*****************************************************************************
*/
DLL_DESC
*
getDLLDefaults
(
void
)
const
DLL_DESC
*
getDLLDefaults
(
void
)
{
return
sDLLType
;
}
/*****************************************************************************
*/
AUDIO_DRIVER
*
getAudioDrivers
(
void
)
const
AUDIO_DRIVER
*
getAudioDrivers
(
void
)
{
return
sAudioDrivers
;
}
...
...
programs/winecfg/properties.h
View file @
e452c246
...
...
@@ -93,10 +93,10 @@ typedef struct
int
nType
;
}
DEV_NODES
;
VERSION_DESC
*
getWinVersions
(
void
);
VERSION_DESC
*
getDOSVersions
(
void
);
DLL_DESC
*
getDLLDefaults
(
void
);
AUDIO_DRIVER
*
getAudioDrivers
(
void
);
const
VERSION_DESC
*
getWinVersions
(
void
);
const
VERSION_DESC
*
getDOSVersions
(
void
);
const
DLL_DESC
*
getDLLDefaults
(
void
);
const
AUDIO_DRIVER
*
getAudioDrivers
(
void
);
char
*
getVersionFromDescription
(
VERSION_DESC
*
pVer
,
char
*
desc
);
char
*
getDescriptionFromVersion
(
VERSION_DESC
*
pVer
,
char
*
ver
);
...
...
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