fix includes and type

This commit is contained in:
Dennis Gunia
2025-10-21 00:30:10 +02:00
parent ea8f512b4d
commit e8f56806b6
4 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
* *
*/ */
#include "sfbus.h" #include "serial/sfbus.h"
#include <ctype.h> #include <ctype.h>
#include <errno.h> // Error integer and strerror() function #include <errno.h> // Error integer and strerror() function
#include <fcntl.h> // Contains file controls like O_RDWR #include <fcntl.h> // Contains file controls like O_RDWR

View File

@@ -18,9 +18,9 @@
#include "console.h" #include "console.h"
#include "devicemgr.h" #include "devicemgr.h"
#include "ftdi485.h"
#include "logging/logger.h" #include "logging/logger.h"
#include "sfbus.h" #include "serial/ftdi485.h"
#include "serial/sfbus.h"
extern char *optarg; extern char *optarg;

View File

@@ -7,7 +7,7 @@
* *
*/ */
#include "sfbus.h" #include "serial/sfbus.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -55,7 +55,7 @@ void ws_messagehandler(ws_cli_conn_t client, const unsigned char *msg, uint64_t
log_message(LOG_DEBUG, "WebSocket received message: %s (%zu), from: %s", msg, size, cli); log_message(LOG_DEBUG, "WebSocket received message: %s (%zu), from: %s", msg, size, cli);
json_tokener *tok = json_tokener_new(); json_tokener *tok = json_tokener_new();
json_object *req = json_tokener_parse_ex(tok, msg, size); json_object *req = json_tokener_parse_ex(tok, (const char*)msg, size);
enum json_tokener_error jerr; enum json_tokener_error jerr;
jerr = json_tokener_get_error(tok); jerr = json_tokener_get_error(tok);
if (jerr != json_tokener_success) if (jerr != json_tokener_success)