Fix signedness warnings for sscanf calls
This commit is contained in:
parent
b9f24e8c80
commit
766bcc70f5
|
@ -1368,7 +1368,7 @@ gkrellm_inet_load_data(void)
|
|||
sscanf(buf, "%d %d %d %d", &min, &hour, &yday, &len);
|
||||
fgets(buf, sizeof(buf), f); /* Comment line */
|
||||
fgets(buf, sizeof(buf), f);
|
||||
sscanf(buf, "%ld %ld %ld %ld",
|
||||
sscanf(buf, "%lu %lu %lu %lu",
|
||||
&in->hits0_minute, &in->hits1_minute,
|
||||
&in->hits0_hour, &in->hits1_hour);
|
||||
|
||||
|
|
|
@ -1589,7 +1589,7 @@ static gboolean
|
|||
status_is_old(gchar *buf)
|
||||
{
|
||||
gchar c;
|
||||
int tmp;
|
||||
guint tmp;
|
||||
|
||||
/* Standard mail clients
|
||||
*/
|
||||
|
@ -1629,7 +1629,7 @@ status_is_old(gchar *buf)
|
|||
static gboolean
|
||||
status_is_deleted(gchar *buf)
|
||||
{
|
||||
gint tmp;
|
||||
guint tmp;
|
||||
|
||||
/* Standard mail clients
|
||||
if ( !strncmp(buf, "Status:", 7) )
|
||||
|
|
Loading…
Reference in New Issue