summaryrefslogtreecommitdiff
path: root/scan_urlencoded_query.c
diff options
context:
space:
mode:
authorerdgeist <>2009-01-13 22:41:17 +0000
committererdgeist <>2009-01-13 22:41:17 +0000
commit131211b4daf83b7c594337f4e7c71e4711094d71 (patch)
tree63dc942c426103c01d61aa15959a81df91f2d4e1 /scan_urlencoded_query.c
parent779d6c235ff8fe5284fd10dc82a9b99e7fa38d06 (diff)
V6
Diffstat (limited to 'scan_urlencoded_query.c')
-rw-r--r--scan_urlencoded_query.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/scan_urlencoded_query.c b/scan_urlencoded_query.c
index c3acefc..4a8ff63 100644
--- a/scan_urlencoded_query.c
+++ b/scan_urlencoded_query.c
@@ -140,21 +140,4 @@ ssize_t scan_fixed_int( char *data, size_t len, int *tmp ) {
140 return len; 140 return len;
141} 141}
142 142
143ssize_t scan_fixed_ip( char *data, size_t len, unsigned char ip[4] ) {
144 int u, i;
145
146 for( i=0; i<4; ++i ) {
147 ssize_t j = scan_fixed_int( data, len, &u );
148 if( j == (ssize_t)len ) return len;
149 ip[i] = u;
150 data += len - j;
151 len = j;
152 if ( i<3 ) {
153 if( !len || *data != '.') return -1;
154 --len; ++data;
155 }
156 }
157 return len;
158}
159
160const char *g_version_scan_urlencoded_query_c = "$Source$: $Revision$\n"; 143const char *g_version_scan_urlencoded_query_c = "$Source$: $Revision$\n";