make ANSI C compatible
[unix-history] / usr / src / old / implog / implog.c
index 1d22243..d0629c9 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)implog.c   5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)implog.c   5.6 (Berkeley) %G%";
 #endif not lint
 
 #include <stdio.h>
 #endif not lint
 
 #include <stdio.h>
@@ -224,7 +224,7 @@ process(l, f)
        if (ip->il_format != IMP_NFF)
                fn = impundef;
        else {
        if (ip->il_format != IMP_NFF)
                fn = impundef;
        else {
-               for (mp = mtypes; mp->m_type != -1; mp++)
+               for (mp = mtypes; mp->m_type != (u_char)-1; mp++)
                        if (mp->m_type == ip->il_mtype)
                                break;
                fn = mp->m_func;
                        if (mp->m_type == ip->il_mtype)
                                break;
                fn = mp->m_func;