aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
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
parentexamples: evas-3d-obj provide a biffer string buffer (diff)
downloadefl-e419703cd51c0da28dd84593ce55c184217d5c39.tar.gz
examples: fix ecore_fd_handler_gnutls_examples
Diffstat (limited to 'src/examples')
-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 @@
* compile with gcc $(pkgconfig --cflags --libs gnutls ecore)
*/
-#define print(...) fprintf(stderr, "line %i: ", __LINE__); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
+#define print(...) \
+do { \
+ fprintf(stderr, "line %i: ", __LINE__); \
+ fprintf(stderr, __VA_ARGS__); \
+ fprintf(stderr, "\n");\
+} while(0)
static int done = 0;
@@ -75,6 +80,8 @@ SSL_GNUTLS_PRINT_HANDSHAKE_STATUS(gnutls_handshake_description_t status)
case GNUTLS_HANDSHAKE_SUPPLEMENTAL:
return "Supplemental";
+ default:
+ return "Uncaught state";
}
return NULL;
}