diff options
author | Bryan Jurish <mukau@users.sourceforge.net> | 2008-12-04 14:23:42 +0000 |
---|---|---|
committer | Bryan Jurish <mukau@users.sourceforge.net> | 2008-12-04 14:23:42 +0000 |
commit | b2394c4ae6c41d6f7a7dfbf7b2c2c3200c3c4992 (patch) | |
tree | be0e9995576a695fb0eead5f4bc5aa9718f2e9a7 /gfsm/gfsm/src/libgfsm/gfsmIO.c | |
parent | 6b81740cda47da83fe3dc8f1dbf53558fcd80d7c (diff) |
+ added ./autogen.sh-generated stuff to SVN, for pd-extended auto-builds
- pkg-config autoconf macros e.g. PKG_CHECK_MODULES are missing on darwin
+ removed extraneous (non-library) gfsm/ subdirectories doc/, src/programs, tests/
+ added a lot of UNUSED attributes to lighten the pd-extended autobuild logs a bit
svn path=/trunk/externals/moocow/; revision=10421
Diffstat (limited to 'gfsm/gfsm/src/libgfsm/gfsmIO.c')
-rw-r--r-- | gfsm/gfsm/src/libgfsm/gfsmIO.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gfsm/gfsm/src/libgfsm/gfsmIO.c b/gfsm/gfsm/src/libgfsm/gfsmIO.c index f5e637d..e396c7b 100644 --- a/gfsm/gfsm/src/libgfsm/gfsmIO.c +++ b/gfsm/gfsm/src/libgfsm/gfsmIO.c @@ -335,7 +335,7 @@ ssize_t gfsmio_getdelim(gfsmIOHandle *ioh, char **lineptr, size_t *n, int delim) int c = -2; GString *gs=NULL; - while ( *n > 0 && i < (*n-1) && (c=gfsmio_getc(ioh)) != GFSMIO_EOF ) { + while ( *n > 0 && i < (((ssize_t)(*n))-1) && (c=gfsmio_getc(ioh)) != GFSMIO_EOF ) { (*lineptr)[i++] = c; #ifdef GFSM_DEBUG_GETDELIM fprintf(stderr, "---> getdelim(i=%d) got char %d ~ '%c' to linebuf\n", i, (char)c, c);//--DEBUG @@ -502,13 +502,13 @@ gboolean gfsmio_eof_zfile(gzFile zf) * gzFile: Read Methods */ gboolean gfsmio_read_zfile(gzFile zf, void *buf, size_t nbytes) -{ return zf ? (gzread(zf,buf,nbytes)==nbytes) : FALSE; } +{ return zf ? (gzread(zf,buf,nbytes)==(int)nbytes) : FALSE; } /*-------------------------------------------------------------- * gzFile: Write Methods */ gboolean gfsmio_write_zfile(gzFile zf, const void *buf, size_t nbytes) -{ return zf ? (gzwrite(zf, buf, nbytes)==nbytes) : FALSE; } +{ return zf ? (gzwrite(zf, buf, nbytes)==(int)nbytes) : FALSE; } #endif /* GFSM_ZLIB_ENABLED */ |