From 87c4ceaf7c9ac98a35b5ed3de31191887d609d79 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 28 Feb 2011 14:56:03 -0800 Subject: Fix compiler warning on casting -1 to uint32. --- source3/printing/printing.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/printing') diff --git a/source3/printing/printing.c b/source3/printing/printing.c index ce112bb152..a89081432d 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -527,8 +527,8 @@ uint32 sysjob_to_jobid(int unix_jobid) ****************************************************************************/ static const struct { - uint32 lpq_status; - uint32 spoolss_status; + uint32_t lpq_status; + uint32_t spoolss_status; } lpq_to_spoolss_status_map[] = { { LPQ_QUEUED, JOB_STATUS_QUEUED }, { LPQ_PAUSED, JOB_STATUS_PAUSED }, @@ -541,7 +541,7 @@ static const struct { { LPQ_DELETED, JOB_STATUS_DELETED }, { LPQ_BLOCKED, JOB_STATUS_BLOCKED_DEVQ }, { LPQ_USER_INTERVENTION, JOB_STATUS_USER_INTERVENTION }, - { -1, 0 } + { (uint32_t)-1, 0 } }; /* Convert a lpq status value stored in printing.tdb into the -- cgit