RIP BOOL. Convert BOOL -> bool. I found a few interesting
[samba.git] / source3 / printing / print_cups.c
index 284956636f7e75c3c192aa66c97cbb30efa9d667..e9e4e5955f4a6c85af1d6ed0db58fef0d8c0c3be 100644 (file)
@@ -14,8 +14,7 @@
  * GNU General Public License for more details.
  * 
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #include "includes.h"
@@ -75,7 +74,7 @@ static http_t *cups_connect(void)
        return http;
 }
 
-BOOL cups_cache_reload(void)
+bool cups_cache_reload(void)
 {
        http_t          *http = NULL;           /* HTTP connection to server */
        ipp_t           *request = NULL,        /* IPP Request */
@@ -89,7 +88,7 @@ BOOL cups_cache_reload(void)
                          "printer-name",
                          "printer-info"
                        };       
-       BOOL ret = False;
+       bool ret = False;
 
        DEBUG(5, ("reloading cups printcap cache\n"));
 
@@ -564,7 +563,7 @@ static int cups_job_submit(int snum, struct printjob *pjob)
                        *response = NULL;       /* IPP Response */
        cups_lang_t     *language = NULL;       /* Default language */
        char            uri[HTTP_MAX_URI]; /* printer-uri attribute */
-       char            *clientname = NULL;     /* hostname of client for job-originating-host attribute */
+       const char      *clientname = NULL;     /* hostname of client for job-originating-host attribute */
        pstring         new_jobname;
        int             num_options = 0; 
        cups_option_t   *options = NULL;
@@ -1198,7 +1197,7 @@ struct printif    cups_printif =
        cups_job_submit,
 };
 
-BOOL cups_pull_comment_location(NT_PRINTER_INFO_LEVEL_2 *printer)
+bool cups_pull_comment_location(NT_PRINTER_INFO_LEVEL_2 *printer)
 {
        http_t          *http = NULL;           /* HTTP connection to server */
        ipp_t           *request = NULL,        /* IPP Request */
@@ -1215,7 +1214,7 @@ BOOL cups_pull_comment_location(NT_PRINTER_INFO_LEVEL_2 *printer)
                          "printer-info",
                          "printer-location"
                        };
-       BOOL ret = False;
+       bool ret = False;
 
        DEBUG(5, ("pulling %s location\n", printer->sharename));