Herb's warning fixes. Also the POSIX locking fix.
[samba.git] / source3 / rpc_server / srv_spoolss_nt.c
index c32ca8d871308af8934b71114b3aac291fb124f7..5a724d6ab6487fbd701f21203a5530eb3b645b8a 100644 (file)
@@ -358,16 +358,14 @@ static BOOL set_printer_hnd_printertype(Printer_entry *Printer, char *handlename
        if (!strchr(handlename+2, '\\')) {
                DEBUGADD(4,("Printer is a print server\n"));
                Printer->printer_type = PRINTER_HANDLE_IS_PRINTSERVER;          
-               return True;
        }
        /* it's a printer */
        else {
                DEBUGADD(4,("Printer is a printer\n"));
                Printer->printer_type = PRINTER_HANDLE_IS_PRINTER;
-               return True;
        }
 
-       return False;
+       return True;
 }
 
 /****************************************************************************