Get rid of signed/unsigned warning.
authorPetter Reinholdtsen <pere@hungry.com>
Sun, 22 Nov 2009 22:36:29 +0000 (22:36 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Sun, 22 Nov 2009 22:36:29 +0000 (22:36 +0000)
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@25 456724a4-4300-0410-8514-c89748c515a2

src/bootlogd.c

index 8831923bd65d20727bc21a72d489060f28d18176..6ee982a902de03078bd943c18cc430ddfa4ec45e 100644 (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);