gcc 11.x fixes
[src/app-framework-binder.git] / src / afb-hook.c
index 909c512..9bd480b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016-2019 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
  * Author José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -201,7 +201,7 @@ static void _hook_(const char *fmt1, const char *fmt2, va_list arg2, ...)
        iov[4].iov_base = (void*)&chars[9];
        iov[4].iov_len = 1;
 
-       (void)writev(2, iov, 5);
+       (void)!writev(2, iov, 5);
 
        free(mem1);
        free(mem2);