diff options
author | Jeremy Allison <jra@samba.org> | 2011-02-28 14:56:03 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-02-28 14:56:03 -0800 |
commit | 87c4ceaf7c9ac98a35b5ed3de31191887d609d79 (patch) | |
tree | b8d2a995a4f593f667a029fc725fa89e9f0e9114 /source3 | |
parent | 59a077d8f5b4ec78e90d6c4dabbc65375598c431 (diff) | |
download | samba-87c4ceaf7c9ac98a35b5ed3de31191887d609d79.tar.gz samba-87c4ceaf7c9ac98a35b5ed3de31191887d609d79.tar.bz2 samba-87c4ceaf7c9ac98a35b5ed3de31191887d609d79.zip |
Fix compiler warning on casting -1 to uint32.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/printing.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |