From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 21 Oct 2012 12:52:35 +0000 (+0000)
Subject: Let the IOB_PEEK macro take the iob as argument
X-Git-Tag: v_3_0_20~228
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/static/@proxy-info-url@?a=commitdiff_plain;h=906e7f86d3915752e3a21725266b9ce08f84926f;p=privoxy.git

Let the IOB_PEEK macro take the iob as argument
---

diff --git a/project.h b/project.h
index f0d72603..36913f68 100644
--- a/project.h
+++ b/project.h
@@ -1,7 +1,7 @@
 #ifndef PROJECT_H_INCLUDED
 #define PROJECT_H_INCLUDED
 /** Version string. */
-#define PROJECT_H_VERSION "$Id: project.h,v 1.184 2012/10/21 12:35:15 fabiankeil Exp $"
+#define PROJECT_H_VERSION "$Id: project.h,v 1.185 2012/10/21 12:39:27 fabiankeil Exp $"
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/project.h,v $
@@ -412,10 +412,9 @@ struct iob
 
 /**
  * Return the number of bytes in the I/O buffer associated with the passed
- * client_state pointer.
- * May be zero.
+ * I/O buffer. May be zero.
  */
-#define IOB_PEEK(CSP) ((CSP->iob->cur > CSP->iob->eod) ? (CSP->iob->eod - CSP->iob->cur) : 0)
+#define IOB_PEEK(IOB) ((IOB->cur > IOB->eod) ? (IOB->eod - IOB->cur) : 0)
 
 
 /**