Annotation of coherent/d/bin/uucheck/checkperms/messages.c, revision 1.1

1.1     ! root        1: /* messages.c - generate output for checkperms.
        !             2:  * part of uucheck
        !             3:  */
        !             4: #include "y.tab.h"
        !             5: #include "checkperms.h"
        !             6: 
        !             7: void
        !             8: notice(typ, msg, str)
        !             9:        int typ;
        !            10:        char *msg;
        !            11:        char *str;
        !            12: {
        !            13:        if (typ == ERROR_TOKEN) {
        !            14:                error = TRUE;
        !            15:                if(!silent && msg != NULL){
        !            16:                        printf("ERROR: ");
        !            17:                        printf(msg, str);
        !            18:                        printf("\n");
        !            19:                }
        !            20:        } else if (typ == WARNING_TOKEN) {
        !            21:                warning = TRUE;
        !            22:                if(!silent && msg != NULL){
        !            23:                        printf("Warning: ");
        !            24:                        printf(msg, str);
        !            25:                        printf("\n");
        !            26:                }
        !            27:        } else {
        !            28:                FATAL("Impossible message type %d.\n", typ);
        !            29:        }
        !            30: } /* notice() */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.