Commit 9678b650 9678b6507b9fe113340caade06135154eda7ec86 by Sergey Poznyakoff

Include stdlib.h

1 parent 700a91d6
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
20 #endif 20 #endif
21 21
22 #include <stdio.h> 22 #include <stdio.h>
23 #include <stdlib.h>
23 #include <unistd.h> 24 #include <unistd.h>
24 #include <sys/types.h> 25 #include <sys/types.h>
25 #include <sys/stat.h> 26 #include <sys/stat.h>
...@@ -147,7 +148,7 @@ mu_init_tls_libs (void) ...@@ -147,7 +148,7 @@ mu_init_tls_libs (void)
147 return !gnutls_global_init (); /* Returns 1 on success */ 148 return !gnutls_global_init (); /* Returns 1 on success */
148 } 149 }
149 150
150 int 151 void
151 mu_deinit_tls_libs (void) 152 mu_deinit_tls_libs (void)
152 { 153 {
153 gnutls_global_deinit (); 154 gnutls_global_deinit ();
...@@ -300,7 +301,6 @@ _tls_write (stream_t stream, const char *iptr, size_t isize, ...@@ -300,7 +301,6 @@ _tls_write (stream_t stream, const char *iptr, size_t isize,
300 static int 301 static int
301 _tls_flush (stream_t stream) 302 _tls_flush (stream_t stream)
302 { 303 {
303 struct _tls_stream *s = stream_get_owner (stream);
304 /* noop */ 304 /* noop */
305 return 0; 305 return 0;
306 } 306 }
...@@ -314,6 +314,7 @@ _tls_close (stream_t stream) ...@@ -314,6 +314,7 @@ _tls_close (stream_t stream)
314 gnutls_bye (s->session, GNUTLS_SHUT_RDWR); 314 gnutls_bye (s->session, GNUTLS_SHUT_RDWR);
315 s->state = state_closed; 315 s->state = state_closed;
316 } 316 }
317 return 0;
317 } 318 }
318 319
319 static int 320 static int
......