changeset: 427:6e9a233829f2
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Thu Jul 14 20:03:00 2011 +0100
files: lsx.c
description:
fix extra warning
diff -r 9c36f30f66a1 -r 6e9a233829f2 lsx.c
--- a/lsx.c Wed Jul 06 13:40:36 2011 +0100
+++ b/lsx.c Thu Jul 14 20:03:00 2011 +0100
@@ -32,7 +32,7 @@
return;
}
while((d = readdir(dp)))
- if(snprintf(buf, sizeof buf, "%s/%s", dir, d->d_name) < sizeof buf
+ if(snprintf(buf, sizeof buf, "%s/%s", dir, d->d_name) < (ssize_t)sizeof buf
&& !stat(buf, &st) && S_ISREG(st.st_mode) && access(buf, X_OK) == 0)
puts(d->d_name);
closedir(dp);
Received on Thu Jul 14 2011 - 21:06:58 CEST
This archive was generated by hypermail 2.2.0 : Thu Jul 14 2011 - 21:12:04 CEST