From bee9191042416cbfb848615189ca1e2a0069f022 Mon Sep 17 00:00:00 2001 From: marha Date: Thu, 29 Sep 2011 08:21:31 +0200 Subject: xwininfo libXft mesa git update 29 sep 2011 --- apps/xwininfo/dsimple.c | 4 ++-- apps/xwininfo/dsimple.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/xwininfo/dsimple.c b/apps/xwininfo/dsimple.c index d1b9fd903..5f98c5675 100644 --- a/apps/xwininfo/dsimple.c +++ b/apps/xwininfo/dsimple.c @@ -75,7 +75,7 @@ from The Open Group. /* This stuff is defined in the calling program by dsimple.h */ -char *program_name = "unknown_program"; +const char *program_name = "unknown_program"; /* * Get_Display_Name (argc, argv) - return string representing display name @@ -403,7 +403,7 @@ Window_With_Name ( /* * Standard fatal error routine - call like printf */ -void Fatal_Error (char *msg, ...) +void Fatal_Error (const char *msg, ...) { va_list args; fflush (stdout); diff --git a/apps/xwininfo/dsimple.h b/apps/xwininfo/dsimple.h index b6adc4345..952960542 100644 --- a/apps/xwininfo/dsimple.h +++ b/apps/xwininfo/dsimple.h @@ -43,7 +43,7 @@ typedef enum { False = 0, True } Bool; /* Global variables used by routines in dsimple.c */ -extern char *program_name; /* Name of this program */ +extern const char *program_name; /* Name of this program */ /* Declarations for functions in dsimple.c */ @@ -54,7 +54,7 @@ void Setup_Display_And_Screen (const char *displayname, xcb_window_t Select_Window (xcb_connection_t *, const xcb_screen_t *, int); xcb_window_t Window_With_Name (xcb_connection_t *, xcb_window_t, const char *); -void Fatal_Error (char *, ...) _X_NORETURN _X_ATTRIBUTE_PRINTF(1, 2); +void Fatal_Error (const char *, ...) _X_NORETURN _X_ATTRIBUTE_PRINTF(1, 2); void Print_X_Error (xcb_connection_t *, xcb_generic_error_t *); -- cgit v1.2.3