Commit f358487f authored by Wayne Davison's avatar Wayne Davison

Silence a compiler warning on Sun OS systems.

parent a18381ac
......@@ -43,7 +43,7 @@ main(UNUSED(int argc), UNUSED(char *argv[]))
}
for (i = 0; i < n; i++)
printf("%u ", list[i]);
printf("%lu ", (unsigned long)list[i]);
printf("\n");
return 0;
......
......@@ -116,10 +116,9 @@ static void list_file (const char *fname)
/* NB: need to pass size as a double because it might be be
* too large for a long. */
printf("%s %12.0f %6ld.%-6ld %6d %s %s%s\n",
permbuf, (double) buf.st_size,
(long) buf.st_uid, (long) buf.st_gid,
buf.st_nlink,
printf("%s %12.0f %6ld.%-6ld %6ld %s %s%s\n",
permbuf, (double)buf.st_size, (long)buf.st_uid,
(long)buf.st_gid, (long)buf.st_nlink,
datebuf, fname, linkbuf);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment