Fix signedness warnings for sscanf calls

This commit is contained in:
Stefan Gehn 2013-12-16 13:03:22 +01:00
parent b9f24e8c80
commit 766bcc70f5
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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) )