MINOR: buffer: use b_orig() to replace most references to b->data
This patch updates most users of b->data to use b_orig().
diff --git a/include/proto/h1.h b/include/proto/h1.h
index 943ac0f..eef310f 100644
--- a/include/proto/h1.h
+++ b/include/proto/h1.h
@@ -163,7 +163,7 @@
bytes++;
ptr++;
if (ptr >= b_wrap(buf))
- ptr = buf->data;
+ ptr = b_orig(buf);
}
if (bytes > stop - start)
@@ -210,7 +210,7 @@
if (c < 0) /* not a hex digit anymore */
break;
if (unlikely(++ptr >= end))
- ptr = buf->data;
+ ptr = b_orig(buf);
if (unlikely(chunk & 0xF8000000)) /* integer overflow will occur if result >= 2GB */
goto error;
chunk = (chunk << 4) + c;
@@ -223,7 +223,7 @@
while (HTTP_IS_SPHT(*ptr)) {
if (++ptr >= end)
- ptr = buf->data;
+ ptr = b_orig(buf);
if (--stop == 0)
return 0;
}
@@ -236,7 +236,7 @@
/* we now have a CR or an LF at ptr */
if (likely(*ptr == '\r')) {
if (++ptr >= end)
- ptr = buf->data;
+ ptr = b_orig(buf);
if (--stop == 0)
return 0;
}
@@ -244,7 +244,7 @@
if (*ptr != '\n')
goto error;
if (++ptr >= end)
- ptr = buf->data;
+ ptr = b_orig(buf);
--stop;
/* done */
break;
@@ -252,13 +252,13 @@
else if (likely(*ptr == ';')) {
/* chunk extension, ends at next CRLF */
if (++ptr >= end)
- ptr = buf->data;
+ ptr = b_orig(buf);
if (--stop == 0)
return 0;
while (!HTTP_IS_CRLF(*ptr)) {
if (++ptr >= end)
- ptr = buf->data;
+ ptr = b_orig(buf);
if (--stop == 0)
return 0;
}