Commit abce3206 authored by Keith Packard's avatar Keith Packard

os: Clean up warnings

Just const char stuff.
Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
parent a1cb69dc
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment