You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@worldgate.com> on 1997/07/12 22:10:54 UTC

again more mod_mime_magic

In mod_mime_magic, there are a couple of NOTREACHED comments that don't
make sense to me.  eg.

    /*
     * try looking at the first HOWMANY bytes
     */
    if ((nbytes = read(fd, (char *) buf, HOWMANY)) == -1) {
        log_printf(r->server, "read failed (%s).", strerror(errno));
        /* NOTREACHED */
    }

and:

    case S_IFREG:
        break;
    default:
        log_printf(r->server, "%s: invalid mode 0%o.", MODNAME,
               sb->st_mode);
        /* NOTREACHED */
    }