use ssize_t and size_t for read- and write-like emacs_gnutls_* functions
authorJim Meyering <meyering@redhat.com>
Sun, 10 Apr 2011 14:00:13 +0000 (16:00 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 10 Apr 2011 14:00:13 +0000 (16:00 +0200)
commit368f40905f551ebaead782b3bb23140661600ae0
tree5e03cbb2800c27c16edbd881af8fd02cea707d44
parenta32d40405d31edd2ce4349b95277306554fb54a4
use ssize_t and size_t for read- and write-like emacs_gnutls_* functions

* gnutls.c (emacs_gnutls_read): Adjust signature to be more read-like:
return ssize_t not "int", and use size_t as the buffer length.
(emacs_gnutls_write): Likewise, and make the buffer pointer "const".
* gnutls.h: Update declarations.
* process.c (read_process_output): Use ssize_t, to match.
(send_process): Likewise.
src/ChangeLog
src/gnutls.c
src/gnutls.h
src/process.c