comparison src/neon/neon.c @ 2647:5808b64d3f68

branch merge
author Paula Stanciu <paula.stanciu@gmail.com>
date Sun, 25 May 2008 21:29:48 +0300
parents 887b2c5a1fbb
children 01ce6cb72e43
comparison
equal deleted inserted replaced
2646:7fbff3287a56 2647:5808b64d3f68
1298 if (0 > newpos) { 1298 if (0 > newpos) {
1299 _ERROR("<%p> Can not seek before start of stream", h); 1299 _ERROR("<%p> Can not seek before start of stream", h);
1300 _LEAVE -1; 1300 _LEAVE -1;
1301 } 1301 }
1302 1302
1303 if (newpos > content_length) { 1303 if (newpos >= content_length) {
1304 _ERROR("<%p> Can not seek beyond end of stream", h); 1304 _ERROR("<%p> Can not seek beyond end of stream", h);
1305 _LEAVE -1; 1305 _LEAVE -1;
1306 } 1306 }
1307 1307
1308 if (newpos == h->pos) { 1308 if (newpos == h->pos) {