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:
Keith Packard 2013-11-15 05:19:24 -08:00
parent a1cb69dc28
commit abce3206cb
3 changed files with 5 additions and 5 deletions

View File

@ -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); */

View File

@ -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];

View File

@ -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;
}