httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject again more mod_mime_magic
Date Sat, 12 Jul 1997 20:10:54 GMT
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 */
    }





Mime
View raw message