r16626: Fix bug #3878. Reported by jason@ncac.gwu.edu.
authorJeremy Allison <jra@samba.org>
Wed, 28 Jun 2006 17:26:48 +0000 (17:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:19:04 +0000 (11:19 -0500)
Jeremy.
(This used to be commit 4c3019eb99d0a18a33ef1fa90d01b9c99c0b25c3)

source3/printing/printing.c

index fed9c005d0f85d3949ef25d27434bd74389c9af6..d06b34454a419469e38c14ed9bc79d78ae755b9e 100644 (file)
@@ -234,7 +234,7 @@ void printing_end(void)
  when asked for (and only when supported)
 ****************************************************************************/
 
-static struct printif *get_printer_fns_from_type( int type )
+static struct printif *get_printer_fns_from_type( enum printing_types type )
 {
        struct printif *printer_fns = &generic_printif;
 
@@ -257,7 +257,7 @@ static struct printif *get_printer_fns_from_type( int type )
 
 static struct printif *get_printer_fns( int snum )
 {
-       return get_printer_fns_from_type( lp_printing(snum) );
+       return get_printer_fns_from_type( (enum printing_types)lp_printing(snum) );
 }