From mboxrd@z Thu Jan 1 00:00:00 1970 From: cgit at cryptocrack.de (Lukas Fleischer) Date: Mon, 8 Apr 2013 12:22:53 +0200 Subject: [PATCH v2 22/22] ui-shared.c: use struct strbuf instead of fmt() In-Reply-To: <20130407154326.GF2222@serenity.lan> References: <3a54052ecfc01a0d7da4258d731d0ca9eca6ef50.1365344206.git.john@keeping.me.uk> <20130407154326.GF2222@serenity.lan> Message-ID: <20130408102253.GA21627@blizzard> On Sun, Apr 07, 2013 at 04:43:26PM +0100, John Keeping wrote: > On Sun, Apr 07, 2013 at 05:21:28PM +0200, Jason A. Donenfeld wrote: > > On Sun, Apr 7, 2013 at 4:26 PM, John Keeping wrote: > > > const char *cgit_hosturl() > > > { > > > + struct strbuf sb = STRBUF_INIT; > > > > This is now unused. > > Thanks. Fixed and pushed to my GitHub repository [1]. I'll avoid > sending another reroll of the entire series and only send incremental > patches here if nothing serious is found. Note that you added the patch history to some of the commit messages for some reason... > > [1] http://github.com/johnkeeping/cgit > > > > if (ctx.env.http_host) > > > return ctx.env.http_host; > > > if (!ctx.env.server_name) > > > return NULL; > > > if (!ctx.env.server_port || atoi(ctx.env.server_port) == 80) > > > return ctx.env.server_name; > > > - return xstrdup(fmt("%s:%s", ctx.env.server_name, ctx.env.server_port)); > > > + return fmtalloc("%s:%s", ctx.env.server_name, ctx.env.server_port); > > > } > > _______________________________________________ > cgit mailing list > cgit at hjemli.net > http://hjemli.net/mailman/listinfo/cgit