summaryrefslogtreecommitdiff
path: root/src/examples/ecore/ecore_fd_handler_gnutls_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/ecore/ecore_fd_handler_gnutls_example.c')
-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}