Commit d5179e21 authored by Tristan Gingold's avatar Tristan Gingold

libwrtd: constify + ansi-fy.

parent 8a8b710b
......@@ -20,10 +20,11 @@
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stdint.h>
#include <libmockturtle.h>
#include <libwrtd-internal.h>
const char *wrtd_errors[] = {
static const char * const wrtd_errors[] = {
"Received an invalid answer from white-rabbit-node-code CPU",
"Cannot read channel/trigger state",
"You are using an invalid binary",
......@@ -68,7 +69,7 @@ const char *wrtd_strerror(int err)
* run trtl_init() in order to initialize the WRNC library.
* @return 0 on success, otherwise -1 and errno is appropriately set
*/
int wrtd_init()
int wrtd_init(void)
{
int err;
......@@ -85,7 +86,7 @@ int wrtd_init()
* you stop to use this library. Then, you cannot use functions from this
* library.
*/
void wrtd_exit()
void wrtd_exit(void)
{
trtl_exit();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment