diff mbox series

[V2,2/7] progress API: set define for info field size

Message ID 20201026140342.147578-2-sbabic@denx.de
State Accepted
Headers show
Series [V2,1/7] downloader: drop unuseful marker when dwl is started | expand

Commit Message

Stefano Babic Oct. 26, 2020, 2:03 p.m. UTC
Signed-off-by: Stefano Babic <sbabic@denx.de>
---

Changes since V1: new patch to set define for INFO size

 include/progress_ipc.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/progress_ipc.h b/include/progress_ipc.h
index 2c242eb..f508eda 100644
--- a/include/progress_ipc.h
+++ b/include/progress_ipc.h
@@ -15,6 +15,7 @@ 
 extern "C" {
 #endif
 
+#define PRINFOSIZE	2048
 
 extern char* SOCKET_PROGRESS_PATH;
 
@@ -33,7 +34,7 @@  struct progress_msg {
 	char		hnd_name[64];	/* Name of running hanler */
 	sourcetype	source;		/* Interface that triggered the update */
 	unsigned int 	infolen;    	/* Len of data valid in info */
-	char		info[2048];   	/* additional information about install */
+	char		info[PRINFOSIZE]; /* additional information about install */
 };
 
 char *get_prog_socket(void);