diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-14 10:02:19 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-14 18:44:21 +1100 |
commit | 7cff685c7ecb7dbb126d3bd45217d13fa85ad751 (patch) | |
tree | f3dec7dbe4f7e926bcc5cd83c892b2b2e6d2ce76 /source3/printing | |
parent | c804102d0ff71f5c5664953020e46304d78de4bc (diff) | |
download | samba-7cff685c7ecb7dbb126d3bd45217d13fa85ad751.tar.gz samba-7cff685c7ecb7dbb126d3bd45217d13fa85ad751.tar.bz2 samba-7cff685c7ecb7dbb126d3bd45217d13fa85ad751.zip |
s3: convert registry and printing code to TYPESAFE_QSORT()
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printing.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index b5b8a56dd0..a239fb2c54 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -1158,8 +1158,7 @@ static void print_queue_update_internal( const char *sharename, /* Sort the queue by submission time otherwise they are displayed in hash order. */ - qsort(queue, qcount, sizeof(print_queue_struct), - QSORT_CAST(printjob_comp)); + TYPESAFE_QSORT(queue, qcount, printjob_comp); /* any job in the internal database that is marked as spooled @@ -2736,7 +2735,7 @@ static bool get_stored_queue_info(struct tdb_print_db *pdb, int snum, int *pcoun /* Sort the queue by submission time otherwise they are displayed in hash order. */ - qsort(queue, total_count, sizeof(print_queue_struct), QSORT_CAST(printjob_comp)); + TYPESAFE_QSORT(queue, total_count, printjob_comp); DEBUG(5,("get_stored_queue_info: total_count = %u\n", (unsigned int)total_count)); |