Exemplo n.º 1
0
/*
 * Initialize printer information from configuration file.
 *
 * LOCKING: none.
 */
void
init_printer(void)
{
	printer = get_printaddr();
	if (printer == NULL)
		exit(1);	/* message already logged */
	printer_name = printer->ai_canonname;
	if (printer_name == NULL)
		printer_name = "printer";
	log_msg("printer is %s", printer_name);
}
Exemplo n.º 2
0
/*
 * Initialize printer information.
 *
 * LOCKING: none.
 */
void init_printer(void)
{
    printer = get_printaddr();
    if (printer == NULL) {
        log_msg("no printer device registered");
        exit(1);
    }
    printer_name = printer->ai_canonname;
    if (printer_name == NULL)
        printer_name = "printer";
    log_msg("printer is %s", printer_name);
}