git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] fix comment in strbuf.h to use correct name strbuf_avail()

From
Pierre Habouzit <madcoder@debian.org>
Date
Nov 4, 2007, 08:56 UTC
Message-ID
<20071104085651.GA26269@artemis.corp>
In-Reply-To
<11941633412454-git-send-email-prohaska@zib.de>
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>
Show 30 quoted lines
> ---
>  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
Previous: Steffen Prohaska
Message 2 of 2 in “fix comment in strbuf.h to use correct name strbuf_avail()”
  1. fix comment in strbuf.h to use correct name strbuf_avail()Steffen Prohaska, Nov 4, 2007
  2. Pierre HabouzitNov 4, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.