Fix a few cppcheck warnings.

Use the proper data type in format functions and fix a resource leak.
This commit is contained in:
XhmikosR
2013-10-10 00:05:22 -04:00
committed by TingPing
parent e244001cee
commit c226f4089a
5 changed files with 9 additions and 8 deletions

View File

@@ -322,7 +322,7 @@ ignore_save ()
ig = (struct ignore *) temp->data;
if (!(ig->type & IG_NOSAVE))
{
snprintf (buf, sizeof (buf), "mask = %s\ntype = %d\n\n",
snprintf (buf, sizeof (buf), "mask = %s\ntype = %u\n\n",
ig->mask, ig->type);
write (fh, buf, strlen (buf));
}