@@ -687,7 +687,7 @@ main(int argc, // I - Number of command-line args
687687
688688 printer -> web_forms = web_forms ;
689689
690- cupsSetServerCredentials (keypath , printer -> hostname , 1 );
690+ cupsSetServerCredentials (keypath , printer -> hostname , true );
691691
692692 // Run the print service...
693693 run_printer (printer );
@@ -5995,7 +5995,7 @@ register_printer(
59955995 if ((printer -> services = cupsDNSSDServiceNew (printer -> dnssd , if_index , printer -> dnssd_name , (cups_dnssd_service_cb_t )dnssd_callback , printer )) == NULL )
59965996 goto error ;
59975997
5998- if (!cupsDNSSDServiceAdd (printer -> services , "_printer._tcp" , /*domain*/ NULL , printer -> hostname , /*port*/ 0 , /*num_txt*/ 0 , /*txt*/ NULL ))
5998+ if (!cupsDNSSDServiceAdd (printer -> services , "_printer._tcp" , /*domain*/ NULL , /* hostname*/ NULL , /*port*/ 0 , /*num_txt*/ 0 , /*txt*/ NULL ))
59995999 goto error ;
60006000
60016001 // Then register the _ipp._tcp (IPP) service type with the real port number to
@@ -6005,7 +6005,7 @@ register_printer(
60056005 else
60066006 cupsCopyString (regtype , "_ipp._tcp" , sizeof (regtype ));
60076007
6008- if (!cupsDNSSDServiceAdd (printer -> services , regtype , /*domain*/ NULL , printer -> hostname , (uint16_t )printer -> port , num_txt , txt ))
6008+ if (!cupsDNSSDServiceAdd (printer -> services , regtype , /*domain*/ NULL , /* hostname*/ NULL , (uint16_t )printer -> port , num_txt , txt ))
60096009 goto error ;
60106010
60116011 // Then register the _ipps._tcp (IPP) service type with the real port number
@@ -6015,12 +6015,12 @@ register_printer(
60156015 else
60166016 cupsCopyString (regtype , "_ipps._tcp" , sizeof (regtype ));
60176017
6018- if (!cupsDNSSDServiceAdd (printer -> services , regtype , /*domain*/ NULL , printer -> hostname , (uint16_t )printer -> port , num_txt , txt ))
6018+ if (!cupsDNSSDServiceAdd (printer -> services , regtype , /*domain*/ NULL , /* hostname*/ NULL , (uint16_t )printer -> port , num_txt , txt ))
60196019 goto error ;
60206020
60216021 // Similarly, register the _http._tcp,_printer (HTTP) service type with the
60226022 // real port number to advertise our IPP printer's web interface...
6023- if (!cupsDNSSDServiceAdd (printer -> services , "_http._tcp,_printer" , /*domain*/ NULL , printer -> hostname , (uint16_t )printer -> port , num_txt , txt ))
6023+ if (!cupsDNSSDServiceAdd (printer -> services , "_http._tcp,_printer" , /*domain*/ NULL , /* hostname*/ NULL , (uint16_t )printer -> port , num_txt , txt ))
60246024 goto error ;
60256025
60266026 cupsFreeOptions (num_txt , txt );
0 commit comments