diff options
author | jlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2006-02-20 18:43:55 +0000 |
---|---|---|
committer | jlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2006-02-20 18:43:55 +0000 |
commit | bd7854cb4d663bb0e561eaf5b01bbd47baa71d22 (patch) | |
tree | bca042d698732a5e19035c88c6ffc39d80f543f1 /systemv/cancel.c | |
parent | 4400e98de24bd267328aa20d57951fb6678297fe (diff) |
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@60 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'systemv/cancel.c')
-rw-r--r-- | systemv/cancel.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/systemv/cancel.c b/systemv/cancel.c index f0539d973..63c92fcfa 100644 --- a/systemv/cancel.c +++ b/systemv/cancel.c @@ -1,5 +1,5 @@ /* - * "$Id: cancel.c 5023 2006-01-29 14:39:44Z mike $" + * "$Id: cancel.c 5091 2006-02-08 18:39:56Z mike $" * * "cancel" command for the Common UNIX Printing System (CUPS). * @@ -179,7 +179,7 @@ main(int argc, /* I - Number of command-line arguments */ if (num_dests == 0) num_dests = cupsGetDests(&dests); - if (strcmp(argv[i], "-") == 0) + if (!strcmp(argv[i], "-")) { /* * Delete the current job... @@ -307,8 +307,7 @@ main(int argc, /* I - Number of command-line arguments */ { _cupsLangPrintf(stderr, _("%s: %s failed: %s\n"), argv[0], op == IPP_PURGE_JOBS ? "purge-jobs" : "cancel-job", - response ? ippErrorString(response->request.status.status_code) : - ippErrorString(cupsLastError())); + cupsLastErrorString()); if (response) ippDelete(response); @@ -388,5 +387,5 @@ main(int argc, /* I - Number of command-line arguments */ /* - * End of "$Id: cancel.c 5023 2006-01-29 14:39:44Z mike $". + * End of "$Id: cancel.c 5091 2006-02-08 18:39:56Z mike $". */ |