Skip to content

Commit

Permalink
Use gssize for -1 acceptable argument
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 8, 2014
1 parent 4bbfb36 commit cdf80d7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cutter/cut-stream-parser.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Copyright (C) 2008-2011 Kouhei Sutou <kou@clear-code.com>
* Copyright (C) 2008-2014 Kouhei Sutou <kou@clear-code.com>
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -808,7 +808,7 @@ cut_test_result_parser_new (void)

gboolean
cut_stream_parser_parse (CutStreamParser *stream_parser,
const gchar *text, gsize text_len, GError **error)
const gchar *text, gssize text_len, GError **error)
{
CutStreamParserPrivate *priv = CUT_STREAM_PARSER_GET_PRIVATE(stream_parser);

Expand Down
4 changes: 2 additions & 2 deletions cutter/cut-stream-parser.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Copyright (C) 2008 Kouhei Sutou <kou@cozmixng.org>
* Copyright (C) 2008-2014 Kouhei Sutou <kou@clear-code.com>
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -57,7 +57,7 @@ CutStreamParser *cut_test_result_parser_new (void);

gboolean cut_stream_parser_parse (CutStreamParser *parser,
const gchar *text,
gsize text_len,
gssize text_len,
GError **error);
gboolean cut_stream_parser_end_parse (CutStreamParser *stream_parser,
GError **error);
Expand Down
4 changes: 2 additions & 2 deletions cutter/cut-stream-reader.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Copyright (C) 2008-2011 Kouhei Sutou <kou@clear-code.com>
* Copyright (C) 2008-2014 Kouhei Sutou <kou@clear-code.com>
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -285,7 +285,7 @@ cut_stream_reader_read_from_io_channel_to_end (CutStreamReader *stream_reader,

gboolean
cut_stream_reader_read (CutStreamReader *stream_reader,
const gchar *stream, gsize length)
const gchar *stream, gssize length)
{
CutStreamReaderPrivate *priv;
GError *error = NULL;
Expand Down
4 changes: 2 additions & 2 deletions cutter/cut-stream-reader.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Copyright (C) 2008-2011 Kouhei Sutou <kou@clear-code.com>
* Copyright (C) 2008-2014 Kouhei Sutou <kou@clear-code.com>
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -73,7 +73,7 @@ gboolean cut_stream_reader_read_from_io_channel_to_end
GIOChannel *channel);
gboolean cut_stream_reader_read (CutStreamReader *stream_reader,
const gchar *stream,
gsize length);
gssize length);
gboolean cut_stream_reader_end_read (CutStreamReader *stream_reader);

G_END_DECLS
Expand Down

0 comments on commit cdf80d7

Please sign in to comment.