diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-12-26 11:27:21 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-12-26 11:27:21 +0000 |
commit | ea888f911357dfc0b133167397d771bc877c7763 (patch) | |
tree | 9de735632733e3334197ef447821ad7be2042959 /ui/win32 | |
parent | ef175a220839b0ea8574001c3ca08f09ecae386c (diff) |
Squelch some more discarding-qualifiers warnings.
svn path=/trunk/; revision=46771
Diffstat (limited to 'ui/win32')
-rw-r--r-- | ui/win32/print_win32.c | 8 | ||||
-rw-r--r-- | ui/win32/print_win32.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ui/win32/print_win32.c b/ui/win32/print_win32.c index 989b107db9..788f764004 100644 --- a/ui/win32/print_win32.c +++ b/ui/win32/print_win32.c @@ -56,15 +56,15 @@ for information on printer APIs. static BOOL CALLBACK abort_proc( HDC hDC, int Error ); static HDC get_printer_dc(void); static void init_doc_struct( DOCINFO* di, char* docname); -static void print_file( char* file_name, HDC hdc); +static void print_file( const char* file_name, HDC hdc); -void print_mswin(char *file_name) +void print_mswin(const char *file_name) { HDC hDC; DOCINFO di; - HWND hWndParent = HWND_DESKTOP; /* would be better to be a real window */ + HWND hWndParent = HWND_DESKTOP; /* would be better to be a real window */ /* Need a printer DC to print to. */ hDC = get_printer_dc(); @@ -168,7 +168,7 @@ void print_mswin(char *file_name) /*===============================*/ /* Drawing on the DC */ /* ==============================*/ -static void print_file( char *file_name, HDC hdc) { +static void print_file( const char *file_name, HDC hdc) { #define max_buf_size 1024 #define max_lines 66 diff --git a/ui/win32/print_win32.h b/ui/win32/print_win32.h index 29ba247f3b..1014360a0d 100644 --- a/ui/win32/print_win32.h +++ b/ui/win32/print_win32.h @@ -33,6 +33,6 @@ * * @param file_name the file to print */ -void print_mswin(char *file_name); +void print_mswin(const char *file_name); #endif |