/* * 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); }
/* * 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); }