diff options
| author | Jim Meyering | 2011-04-10 16:00:13 +0200 |
|---|---|---|
| committer | Jim Meyering | 2011-04-10 16:00:13 +0200 |
| commit | 368f40905f551ebaead782b3bb23140661600ae0 (patch) | |
| tree | 5e03cbb2800c27c16edbd881af8fd02cea707d44 /src/process.c | |
| parent | a32d40405d31edd2ce4349b95277306554fb54a4 (diff) | |
| download | emacs-368f40905f551ebaead782b3bb23140661600ae0.tar.gz emacs-368f40905f551ebaead782b3bb23140661600ae0.zip | |
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/process.c')
| -rw-r--r-- | src/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c index 6cddbf6d1a9..624610069d8 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -4898,7 +4898,7 @@ read_process_output_error_handler (Lisp_Object error_val) | |||
| 4898 | static int | 4898 | static int |
| 4899 | read_process_output (Lisp_Object proc, register int channel) | 4899 | read_process_output (Lisp_Object proc, register int channel) |
| 4900 | { | 4900 | { |
| 4901 | register int nbytes; | 4901 | register ssize_t nbytes; |
| 4902 | char *chars; | 4902 | char *chars; |
| 4903 | register Lisp_Object outstream; | 4903 | register Lisp_Object outstream; |
| 4904 | register struct Lisp_Process *p = XPROCESS (proc); | 4904 | register struct Lisp_Process *p = XPROCESS (proc); |
| @@ -5243,7 +5243,7 @@ send_process (volatile Lisp_Object proc, const char *volatile buf, | |||
| 5243 | { | 5243 | { |
| 5244 | /* Use volatile to protect variables from being clobbered by longjmp. */ | 5244 | /* Use volatile to protect variables from being clobbered by longjmp. */ |
| 5245 | struct Lisp_Process *p = XPROCESS (proc); | 5245 | struct Lisp_Process *p = XPROCESS (proc); |
| 5246 | EMACS_INT rv; | 5246 | ssize_t rv; |
| 5247 | struct coding_system *coding; | 5247 | struct coding_system *coding; |
| 5248 | struct gcpro gcpro1; | 5248 | struct gcpro gcpro1; |
| 5249 | void (*volatile old_sigpipe) (int); | 5249 | void (*volatile old_sigpipe) (int); |