err_handler
added an error handler for when a pointer is NULL got rid of malloc in format reply
This commit is contained in:
@@ -13,17 +13,27 @@
|
||||
#include <stdlib.h>
|
||||
#include "lwip/netif.h"
|
||||
#include "lwip.h"
|
||||
#define LOGGER_LEVEL_INFO
|
||||
#define LOGGER_LEVEL_ALL
|
||||
#include "log.h"
|
||||
|
||||
#define sod_name "set_owner_details_name"
|
||||
#define god_name "get_owner_details_name"
|
||||
#define sod_surname "set_owner_details_surname"
|
||||
#define god_surname "get_owner_details_surname"
|
||||
#define sod_reply "set_owner_details_reply"
|
||||
#define god_reply "get_owner_details_reply"
|
||||
#define sod_mac "set_owner_details_mac"
|
||||
#define sod "set_owner_details"
|
||||
#define f_reply "format_reply"
|
||||
|
||||
|
||||
typedef struct {
|
||||
char name[20];
|
||||
char surname[20];
|
||||
uint8_t mac_address[6];
|
||||
char reply[200];
|
||||
char reply[100];
|
||||
}owner_details_t;
|
||||
|
||||
uint8_t set_owner_details_name(owner_details_t*, char* );
|
||||
uint8_t set_owner_details_sirname(owner_details_t*, char* );
|
||||
uint8_t set_owner_details(owner_details_t*, char* , char*);
|
||||
|
||||
char* get_owner_details_name(owner_details_t*);
|
||||
|
||||
Reference in New Issue
Block a user