Get rid of signed/unsigned warning.

This commit is contained in:
Petter Reinholdtsen 2009-11-22 22:36:29 +00:00
parent ecb32a254f
commit 10a85c1427

View File

@ -145,7 +145,7 @@ static int findtty(char *res, const char *startdir, int rlen, dev_t dev)
if (!S_ISCHR(st.st_mode))
continue;
if (st.st_rdev == dev) {
if (strlen(ent->d_name) + strlen(startdir) + 1 >= rlen) {
if ( (int) (strlen(ent->d_name) + strlen(startdir) + 1) >= rlen) {
fprintf(stderr, "bootlogd: console device name too long\n");
closedir(dir);
chdir(olddir);