added some additional consts in appropriate places to remove a warning

Sat Feb  7 11:48:09 1998  Owen Taylor  <owt1@cornell.edu>

	* gstring.c gutils.c: added some additional consts in
	  appropriate places to remove a warning
This commit is contained in:
Owen Taylor 1998-02-07 16:48:03 +00:00 committed by Owen Taylor
parent c763748dd1
commit e105a87144
3 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
Sat Feb 7 11:48:09 1998 Owen Taylor <owt1@cornell.edu>
* gstring.c gutils.c: added some additional consts in
appropriate places to remove a warning
Sat Feb 7 11:15:54 1998 Owen Taylor <owt1@cornell.edu>
* gutils.c: include <ctype.h> for tolower()

View File

@ -342,7 +342,7 @@ g_string_prepend_c (GString *fstring, char c)
}
static int
get_length_upper_bound (gchar* fmt, va_list *args)
get_length_upper_bound (const gchar* fmt, va_list *args)
{
int len = 0;
int short_int;
@ -377,7 +377,7 @@ get_length_upper_bound (gchar* fmt, va_list *args)
case '8':
case '9':
fmt -= 1;
len += strtol (fmt, &fmt, 10);
len += strtol (fmt, (char **)&fmt, 10);
break;
case 'h':
short_int = TRUE;
@ -454,9 +454,9 @@ get_length_upper_bound (gchar* fmt, va_list *args)
}
char*
g_vsprintf (gchar *fmt,
va_list *args,
va_list *args2)
g_vsprintf (const gchar *fmt,
va_list *args,
va_list *args2)
{
static gchar *buf = NULL;
static gint alloc = 0;

View File

@ -29,7 +29,7 @@ static GWarningFunc warning_func = NULL;
static GPrintFunc message_func = NULL;
static GPrintFunc print_func = NULL;
extern char* g_vsprintf (gchar *fmt, va_list *args, va_list *args2);
extern char* g_vsprintf (const gchar *fmt, va_list *args, va_list *args2);
gchar*
g_strdup (const gchar *str)