mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Should these be unsigned?
This commit is contained in:
parent
3cc77c31d6
commit
41f4ec2d50
@ -1682,7 +1682,7 @@ static void cleanup_sorted_dirlist(struct dlent **list, const ssize_t size)
|
|||||||
/* ---------------------------------------------------------------------------
|
/* ---------------------------------------------------------------------------
|
||||||
* Should this character be urlencoded (according to rfc1738)
|
* Should this character be urlencoded (according to rfc1738)
|
||||||
*/
|
*/
|
||||||
static int needs_urlencoding(unsigned char c)
|
static int needs_urlencoding(char c)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
const static char bad[] = "<>\"%{}|^~[]`\\;:/?@#=&";
|
const static char bad[] = "<>\"%{}|^~[]`\\;:/?@#=&";
|
||||||
@ -1701,7 +1701,7 @@ static int needs_urlencoding(unsigned char c)
|
|||||||
/* ---------------------------------------------------------------------------
|
/* ---------------------------------------------------------------------------
|
||||||
* Encode filename to be an rfc1738-compliant URL part
|
* Encode filename to be an rfc1738-compliant URL part
|
||||||
*/
|
*/
|
||||||
static void urlencode_filename(unsigned char *name, unsigned char *safe_url)
|
static void urlencode_filename(char *name, char *safe_url)
|
||||||
{
|
{
|
||||||
const static char hex[] = "0123456789ABCDEF";
|
const static char hex[] = "0123456789ABCDEF";
|
||||||
int i, j;
|
int i, j;
|
||||||
|
Loading…
Reference in New Issue
Block a user