@@ -204,8 +204,8 @@ httpAssembleURI(
204204 }
205205 else
206206 {
207- goto assemble_overflow ;
208- }
207+ goto assemble_overflow ;
208+ }
209209 }
210210 else
211211 {
@@ -406,7 +406,7 @@ httpAssembleUUID(const char *server, // I - Server name
406406 //
407407 // Start with the MD5 sum of the server, port, object name and
408408 // number, and some random data on the end.
409- snprintf (data , sizeof (data ), "%s:%d:%s:%d:%04x:%04x" , server , port , name ? name : server , number , (unsigned )CUPS_RAND () & 0xffff , (unsigned )CUPS_RAND () & 0xffff );
409+ snprintf (data , sizeof (data ), "%s:%d:%s:%d:%04x:%04x" , server , port , name ? name : server , number , (unsigned )cupsGetRand () & 0xffff , (unsigned )cupsGetRand () & 0xffff );
410410
411411 cupsHashData ("md5" , (unsigned char * )data , strlen (data ), md5sum , sizeof (md5sum ));
412412
@@ -625,7 +625,7 @@ httpEncode64_2(char *out, // I - String to write to
625625// 'httpEncode64_3()' - Base64-encode a string.
626626//
627627// This function encodes a Base64 string as defined by RFC 4648. The "url"
628- // parameter controls whether the original Base64 ("url" = `false`) or the
628+ // argument controls whether the original Base64 ("url" = `false`) or the
629629// Base64url ("url" = `true`) alphabet is used.
630630//
631631// @since CUPS 2.5@
@@ -1195,7 +1195,7 @@ _httpSetDigestAuthString(
11951195 DEBUG_puts ("3_httpSetDigestAuthString: Follow RFC 2617/7616..." );
11961196
11971197 for (i = 0 ; i < 64 ; i ++ )
1198- cnonce [i ] = "0123456789ABCDEF" [CUPS_RAND () & 15 ];
1198+ cnonce [i ] = "0123456789ABCDEF" [cupsGetRand () & 15 ];
11991199 cnonce [64 ] = '\0' ;
12001200
12011201 if (!_cups_strcasecmp (http -> qop , "auth" ))
@@ -1429,8 +1429,8 @@ httpStatus(http_status_t status) // I - HTTP status code
14291429//
14301430// 'httpStatusString()' - Return a short string describing a HTTP status code.
14311431//
1432- // The returned string is localized to the current POSIX locale and is based
1433- // on the status strings defined in RFC 7231 .
1432+ // This function returns a short ( localized) string describing a HTTP status
1433+ // code. The strings are taken from the IANA HTTP Status Code registry .
14341434//
14351435// @since CUPS 2.5@
14361436//
@@ -1450,6 +1450,9 @@ httpStatusString(http_status_t status) // I - HTTP status code
14501450//
14511451// 'httpURIStatusString()' - Return a string describing a URI status code.
14521452//
1453+ // This function returns a short (localized) string describing a URI status
1454+ // value.
1455+ //
14531456// @since CUPS 2.0/OS 10.10@
14541457//
14551458
@@ -1573,13 +1576,13 @@ _httpEncodeURI(char *dst, // I - Destination buffer
15731576//
15741577// This function resolves a DNS-SD URI of the form
15751578// "scheme://service-instance-name._protocol._tcp.domain/...". The "options"
1576- // parameter specifies a bitfield of resolution options including:
1579+ // argument specifies a bitfield of resolution options including:
15771580//
15781581// - `HTTP_RESOLVE_DEFAULT`: Use default options
15791582// - `HTTP_RESOLVE_FQDN`: Resolve the fully-qualified domain name instead of an IP address
15801583// - `HTTP_RESOLVE_FAXOUT`: Resolve the FaxOut service instead of Print (IPP/IPPS)
15811584//
1582- // The "cb" parameter specifies a callback that allows resolution to be
1585+ // The "cb" argument specifies a callback that allows resolution to be
15831586// terminated. The callback is provided the "cb_data" value and returns a
15841587// `bool` value that is `true` to continue and `false` to stop. If no callback
15851588// is specified ("cb" is `NULL`), then this function will block up to 90 seconds
0 commit comments