From aa3aca52efa7d21e6b8cb8eb8e40dd4b65732050 Mon Sep 17 00:00:00 2001 From: "Ruslan (The BadAss SysMan) Laishev" <ruslan.laishev@demlabs.net> Date: Thu, 10 Mar 2022 12:41:56 +0300 Subject: [PATCH] Eliminated useless string. --- dap-sdk/core/include/dap_string.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dap-sdk/core/include/dap_string.h b/dap-sdk/core/include/dap_string.h index 9040536297..05f31c85ed 100755 --- a/dap-sdk/core/include/dap_string.h +++ b/dap-sdk/core/include/dap_string.h @@ -9,14 +9,12 @@ #include <sys/types.h> #include "dap_common.h" -typedef struct _dap_string dap_string_t; - -struct _dap_string +typedef struct _dap_string { char *str; size_t len; size_t allocated_len; -}; +} dap_string_t; dap_string_t* dap_string_new(const char *init); dap_string_t* dap_string_new_len(const char *init, ssize_t len); -- GitLab