mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
os: Clean up warnings
Just const char stuff. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
@@ -448,7 +448,7 @@ extern _X_EXPORT void
|
||||
AddLocalHosts(void);
|
||||
|
||||
extern _X_EXPORT void
|
||||
ResetHosts(char *display);
|
||||
ResetHosts(const char *display);
|
||||
|
||||
extern _X_EXPORT void
|
||||
EnableLocalHost(void);
|
||||
@@ -471,7 +471,7 @@ RegisterAuthorizations(void);
|
||||
#endif
|
||||
|
||||
extern _X_EXPORT void
|
||||
InitAuthorization(char * /*filename */ );
|
||||
InitAuthorization(const char * /*filename */ );
|
||||
|
||||
/* extern int LoadAuthorization(void); */
|
||||
|
||||
|
||||
@@ -814,7 +814,7 @@ AddLocalHosts(void)
|
||||
|
||||
/* Reset access control list to initial hosts */
|
||||
void
|
||||
ResetHosts(char *display)
|
||||
ResetHosts(const char *display)
|
||||
{
|
||||
register HOST *host;
|
||||
char lhostname[120], ohostname[120];
|
||||
|
||||
@@ -96,12 +96,12 @@ static struct protocol protocols[] = {
|
||||
* specified authorization file
|
||||
*/
|
||||
|
||||
static char *authorization_file = (char *) NULL;
|
||||
static const char *authorization_file = NULL;
|
||||
|
||||
static Bool ShouldLoadAuth = TRUE;
|
||||
|
||||
void
|
||||
InitAuthorization(char *file_name)
|
||||
InitAuthorization(const char *file_name)
|
||||
{
|
||||
authorization_file = file_name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user