summaryrefslogtreecommitdiff
path: root/src/examples/ecore/ecore_fd_handler_gnutls_example.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-29 13:01:47 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-02 10:34:47 +0100
commite419703cd51c0da28dd84593ce55c184217d5c39 (patch)
tree9aaeb30fd0c7b1d7722de9db0ecec1e25de36435 /src/examples/ecore/ecore_fd_handler_gnutls_example.c
parent0cdfd5d68dbdc46b130d962b88a7dada20dc5fd6 (diff)
examples: fix ecore_fd_handler_gnutls_examples
Diffstat (limited to '')
-rw-r--r--src/examples/ecore/ecore_fd_handler_gnutls_example.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/examples/ecore/ecore_fd_handler_gnutls_example.c b/src/examples/ecore/ecore_fd_handler_gnutls_example.c
index d1d58d941c..6cd5ba1eb1 100644
--- a/src/examples/ecore/ecore_fd_handler_gnutls_example.c
+++ b/src/examples/ecore/ecore_fd_handler_gnutls_example.c
@@ -28,7 +28,12 @@
28 * compile with gcc $(pkgconfig --cflags --libs gnutls ecore) 28 * compile with gcc $(pkgconfig --cflags --libs gnutls ecore)
29 */ 29 */
30 30
31#define print(...) fprintf(stderr, "line %i: ", __LINE__); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n") 31#define print(...) \
32do { \
33 fprintf(stderr, "line %i: ", __LINE__); \
34 fprintf(stderr, __VA_ARGS__); \
35 fprintf(stderr, "\n");\
36} while(0)
32 37
33static int done = 0; 38static int done = 0;
34 39
@@ -75,6 +80,8 @@ SSL_GNUTLS_PRINT_HANDSHAKE_STATUS(gnutls_handshake_description_t status)
75 80
76 case GNUTLS_HANDSHAKE_SUPPLEMENTAL: 81 case GNUTLS_HANDSHAKE_SUPPLEMENTAL:
77 return "Supplemental"; 82 return "Supplemental";
83 default:
84 return "Uncaught state";
78 } 85 }
79 return NULL; 86 return NULL;
80} 87}