Skip to content

Commit af31f81

Browse files
committed
Update cups-x509 and cups-oauth commands to be consistent with the man pages.
1 parent 2aa119a commit af31f81

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

tools/cups-oauth.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Licensed under Apache License v2.0. See the file "LICENSE" for more
77
// information.
88
//
9-
// Usage: cups-oauth [OPTIONS] [COMMAND [ARGUMENT(S)]]
9+
// Usage: cups-oauth [OPTIONS] [SUB-COMMAND [ARGUMENT(S)]]
1010
//
1111
// Commands:
1212
//
@@ -521,9 +521,9 @@ do_set_client_data(
521521
static int // O - Exit status
522522
usage(FILE *out) // I - Output file
523523
{
524-
cupsLangPuts(out, _("Usage: cups-oauth [OPTIONS] [COMMAND [ARGUMENT(S)]]"));
524+
cupsLangPuts(out, _("Usage: cups-oauth [OPTIONS] [SUB-COMMAND [ARGUMENT(S)]]"));
525525
cupsLangPuts(out, "");
526-
cupsLangPuts(out, _("Commands:"));
526+
cupsLangPuts(out, _("Sub-Commands:"));
527527
cupsLangPuts(out, "");
528528
cupsLangPuts(out, _("authorize [RESOURCE] Authorize access to a resource"));
529529
cupsLangPuts(out, _("clear [RESOURCE] Clear the authorization for a resource"));

tools/cups-x509.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,7 @@ do_client(const char *uri, // I - URI
554554
bool require_ca) // I - Require a CA-signed cert?
555555
{
556556
http_t *http; // HTTP connection
557-
char scheme[HTTP_MAX_URI], // Scheme from URI
558-
hostname[HTTP_MAX_URI], // Hostname from URI
559-
username[HTTP_MAX_URI], // Username:password from URI
557+
char hostname[HTTP_MAX_URI], // Hostname from URI
560558
resource[HTTP_MAX_URI]; // Resource from URI
561559
int port; // Port number from URI
562560
http_trust_t trust; // Trust evaluation for connection

0 commit comments

Comments
 (0)