diff options
author | epoch <epoch@hacking.allowed.org> | 2020-01-21 10:30:36 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2020-01-21 10:30:36 -0600 |
commit | 92de12317383f25c0f93ae683530cce5024a0ffc (patch) | |
tree | 4ec90742e59356c48ba2ccf329e7d87f15207fa2 /uri.h | |
parent | 1d0c58a40cdad6f9f00ddab28a8a87e59b101fa7 (diff) | |
download | uritools-92de12317383f25c0f93ae683530cce5024a0ffc.tar.gz uritools-92de12317383f25c0f93ae683530cce5024a0ffc.zip |
fixed some signedness warnings and inconsistencies
Diffstat (limited to 'uri.h')
-rw-r--r-- | uri.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,7 +28,7 @@ char *uri_reserved={ pe_HPUT }; -int uriescapelength(char *in,int len) { +int uriescapelength(unsigned char *in,int len) { int rlen=0;//be sure to add one to this return value if you plan on putting a null byte at the end. int i; for(i=0;i<len;i++) { @@ -38,7 +38,7 @@ int uriescapelength(char *in,int len) { } // make sure your out char * has enough space! use uriescapelength for it. -void uriescape(unsigned char *in,char *out,int len) { +void uriescape(unsigned char *in,unsigned char *out,int len) { int i; int j; for(i=0,j=0;i<len;i++) { |