git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix comment in strbuf.h to use correct name strbuf_avail()
@ 2007-11-04  8:02 Steffen Prohaska
  2007-11-04  8:56 ` Pierre Habouzit
  0 siblings, 1 reply; 2+ messages in thread
From: Steffen Prohaska @ 2007-11-04  8:02 UTC (permalink / raw)
  To: Pierre Habouzit; +Cc: git, Steffen Prohaska


Signed-off-by: Steffen Prohaska <prohaska@zib.de>
---
 strbuf.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Note, the patch is against Junio's pu.

    Steffen

diff --git a/strbuf.h b/strbuf.h
index 9720826..e5cdd1e 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -24,11 +24,11 @@
  *
  *    strbuf_grow(sb, SOME_SIZE);
  *    // ... here the memory areay starting at sb->buf, and of length
- *    // sb_avail(sb) is all yours, and you are sure that sb_avail(sb) is at
- *    // least SOME_SIZE
+ *    // strbuf_avail(sb) is all yours, and you are sure that strbuf_avail(sb)
+ *    // is at least SOME_SIZE
  *    strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE);
  *
- *    Of course, SOME_OTHER_SIZE must be smaller or equal to sb_avail(sb).
+ *    Of course, SOME_OTHER_SIZE must be smaller or equal to strbuf_avail(sb).
  *
  *    Doing so is safe, though if it has to be done in many places, adding the
  *    missing API to the strbuf module is the way to go.
-- 
1.5.3.4.464.ge1bc2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] fix comment in strbuf.h to use correct name strbuf_avail()
  2007-11-04  8:02 [PATCH] fix comment in strbuf.h to use correct name strbuf_avail() Steffen Prohaska
@ 2007-11-04  8:56 ` Pierre Habouzit
  0 siblings, 0 replies; 2+ messages in thread
From: Pierre Habouzit @ 2007-11-04  8:56 UTC (permalink / raw)
  To: Steffen Prohaska; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 1394 bytes --]

On Sun, Nov 04, 2007 at 08:02:21AM +0000, Steffen Prohaska wrote:
> 
> Signed-off-by: Steffen Prohaska <prohaska@zib.de>
  Acked-By: Pierre Habouzit <madcoder@debian.org>
> ---
>  strbuf.h |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> Note, the patch is against Junio's pu.
> 
>     Steffen
> 
> diff --git a/strbuf.h b/strbuf.h
> index 9720826..e5cdd1e 100644
> --- a/strbuf.h
> +++ b/strbuf.h
> @@ -24,11 +24,11 @@
>   *
>   *    strbuf_grow(sb, SOME_SIZE);
>   *    // ... here the memory areay starting at sb->buf, and of length
> - *    // sb_avail(sb) is all yours, and you are sure that sb_avail(sb) is at
> - *    // least SOME_SIZE
> + *    // strbuf_avail(sb) is all yours, and you are sure that strbuf_avail(sb)
> + *    // is at least SOME_SIZE
>   *    strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE);
>   *
> - *    Of course, SOME_OTHER_SIZE must be smaller or equal to sb_avail(sb).
> + *    Of course, SOME_OTHER_SIZE must be smaller or equal to strbuf_avail(sb).
>   *
>   *    Doing so is safe, though if it has to be done in many places, adding the
>   *    missing API to the strbuf module is the way to go.
> -- 
> 1.5.3.4.464.ge1bc2
> 

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-04  8:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-04  8:02 [PATCH] fix comment in strbuf.h to use correct name strbuf_avail() Steffen Prohaska
2007-11-04  8:56 ` Pierre Habouzit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).