diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2010-10-03 16:35:22 -0700 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2010-10-03 16:35:22 -0700 |
commit | 728a982db42d06c3c9db5f920336709387a54cda (patch) | |
tree | 1ab67f96611e906e40ae57a7e81b8d3db9b03afa /lib-src/test-distrib.c | |
parent | c1ae068bbb12dfadbe5f7198fa6584e9c4d7d054 (diff) | |
download | emacs-728a982db42d06c3c9db5f920336709387a54cda.tar.gz emacs-728a982db42d06c3c9db5f920336709387a54cda.tar.bz2 emacs-728a982db42d06c3c9db5f920336709387a54cda.zip |
Fix compilation warnings.
* lib-src/test-distrib.c (cool_read):
* lib-src/movemail.c (main, concat):
* lib-src/make-docfile.c (scan_file, write_c_args):
* emacsclient.c (get_server_config): Fix -Wconversion warning.
(egetenv): Move conditional definition earlier.
(progname): Use const.
* lib-src/sorted-doc.c (xstrdup): Use const.
Diffstat (limited to 'lib-src/test-distrib.c')
-rw-r--r-- | lib-src/test-distrib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c index 880bd115882..1487c2bab57 100644 --- a/lib-src/test-distrib.c +++ b/lib-src/test-distrib.c @@ -52,9 +52,10 @@ char buf[300]; /* Like `read' but keeps trying until it gets SIZE bytes or reaches eof. */ int -cool_read (int fd, char *buf, int size) +cool_read (int fd, char *buf, size_t size) { - int num, sofar = 0; + ssize_t num; + size_t sofar = 0; while (1) { |