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:
parent
a1cb69dc28
commit
abce3206cb
|
@ -448,7 +448,7 @@ extern _X_EXPORT void
|
||||||
AddLocalHosts(void);
|
AddLocalHosts(void);
|
||||||
|
|
||||||
extern _X_EXPORT void
|
extern _X_EXPORT void
|
||||||
ResetHosts(char *display);
|
ResetHosts(const char *display);
|
||||||
|
|
||||||
extern _X_EXPORT void
|
extern _X_EXPORT void
|
||||||
EnableLocalHost(void);
|
EnableLocalHost(void);
|
||||||
|
@ -471,7 +471,7 @@ RegisterAuthorizations(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern _X_EXPORT void
|
extern _X_EXPORT void
|
||||||
InitAuthorization(char * /*filename */ );
|
InitAuthorization(const char * /*filename */ );
|
||||||
|
|
||||||
/* extern int LoadAuthorization(void); */
|
/* extern int LoadAuthorization(void); */
|
||||||
|
|
||||||
|
|
|
@ -814,7 +814,7 @@ AddLocalHosts(void)
|
||||||
|
|
||||||
/* Reset access control list to initial hosts */
|
/* Reset access control list to initial hosts */
|
||||||
void
|
void
|
||||||
ResetHosts(char *display)
|
ResetHosts(const char *display)
|
||||||
{
|
{
|
||||||
register HOST *host;
|
register HOST *host;
|
||||||
char lhostname[120], ohostname[120];
|
char lhostname[120], ohostname[120];
|
||||||
|
|
|
@ -96,12 +96,12 @@ static struct protocol protocols[] = {
|
||||||
* specified authorization file
|
* specified authorization file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static char *authorization_file = (char *) NULL;
|
static const char *authorization_file = NULL;
|
||||||
|
|
||||||
static Bool ShouldLoadAuth = TRUE;
|
static Bool ShouldLoadAuth = TRUE;
|
||||||
|
|
||||||
void
|
void
|
||||||
InitAuthorization(char *file_name)
|
InitAuthorization(const char *file_name)
|
||||||
{
|
{
|
||||||
authorization_file = file_name;
|
authorization_file = file_name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue