aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls.h
diff options
context:
space:
mode:
authorJim Meyering <[email protected]>2011-04-10 16:00:13 +0200
committerJim Meyering <[email protected]>2011-04-10 16:00:13 +0200
commit368f40905f551ebaead782b3bb23140661600ae0 (patch)
tree5e03cbb2800c27c16edbd881af8fd02cea707d44 /src/gnutls.h
parenta32d40405d31edd2ce4349b95277306554fb54a4 (diff)
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.
Diffstat (limited to 'src/gnutls.h')
-rw-r--r--src/gnutls.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gnutls.h b/src/gnutls.h
index 43a9eefce1..b39131b623 100644
--- a/src/gnutls.h
+++ b/src/gnutls.h
@@ -50,15 +50,15 @@ typedef enum
#define GNUTLS_LOG2(level, max, string, extra) if (level <= max) { gnutls_log_function2 (level, "(Emacs) " string, extra); }
-int
-emacs_gnutls_write (int fildes, struct Lisp_Process *proc, char *buf,
- unsigned int nbyte);
-int
+ssize_t
+emacs_gnutls_write (int fildes, struct Lisp_Process *proc, const char *buf,
+ size_t nbyte);
+ssize_t
emacs_gnutls_read (int fildes, struct Lisp_Process *proc, char *buf,
- unsigned int nbyte);
+ size_t nbyte);
extern void syms_of_gnutls (void);
-#endif
+#endif
#endif