[PATCH] lib: fwts_stringextras: use size_t instead of int
Keng-Yu Lin
kengyu at canonical.com
Wed Apr 11 05:17:34 UTC 2012
On Wed, Apr 11, 2012 at 10:13 AM, Alex Hung <alex.hung at canonical.com> wrote:
> On 04/10/2012 10:44 PM, Colin King wrote:
>>
>> From: Colin Ian King<colin.king at canonical.com>
>>
>> Signed-off-by: Colin Ian King<colin.king at canonical.com>
>> ---
>> src/lib/src/fwts_stringextras.c | 4 ++--
>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/lib/src/fwts_stringextras.c
>> b/src/lib/src/fwts_stringextras.c
>> index babf2ed..0143477 100644
>> --- a/src/lib/src/fwts_stringextras.c
>> +++ b/src/lib/src/fwts_stringextras.c
>> @@ -27,7 +27,7 @@
>> */
>> void fwts_chop_newline(char *str)
>> {
>> - int len;
>> + size_t len;
>>
>> if (!str)
>> return;
>> @@ -47,7 +47,7 @@ void fwts_chop_newline(char *str)
>> */
>> char *fwts_realloc_strcat(char *orig, const char *newstr)
>> {
>> - int newlen = strlen(newstr);
>> + size_t newlen = strlen(newstr);
>>
>> if (orig) {
>> if ((orig = realloc(orig, strlen(orig) + newlen + 1)) ==
>> NULL)
>
> Acked-by: Alex Hung <alex.hung at canonical.com>
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>
More information about the fwts-devel
mailing list