File:  [MW Coherent from dump] / coherent / d / bin / uucheck / checkperms / messages.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:39 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* messages.c - generate output for checkperms.
 * part of uucheck
 */
#include "y.tab.h"
#include "checkperms.h"

void
notice(typ, msg, str)
	int typ;
	char *msg;
	char *str;
{
	if (typ == ERROR_TOKEN) {
		error = TRUE;
		if(!silent && msg != NULL){
			printf("ERROR: ");
			printf(msg, str);
			printf("\n");
		}
	} else if (typ == WARNING_TOKEN) {
		warning = TRUE;
		if(!silent && msg != NULL){
			printf("Warning: ");
			printf(msg, str);
			printf("\n");
		}
	} else {
		FATAL("Impossible message type %d.\n", typ);
	}
} /* notice() */

unix.superglobalmegacorp.com

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