From 1a6a2db34e957f1ffa34ca0525802c3a7deb586c Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Mon, 6 Nov 2023 22:05:43 +0100 Subject: [PATCH] TFTP make the context more readable --- project/Core/Src/tftp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/project/Core/Src/tftp.c b/project/Core/Src/tftp.c index e219c54..ddbfc5d 100644 --- a/project/Core/Src/tftp.c +++ b/project/Core/Src/tftp.c @@ -24,10 +24,10 @@ int tftp_write(void* handle, struct pbuf* p) { } struct tftp_context tftpContext_s = { - tftp_open, - tftp_close, - tftp_read, - tftp_write + .open = tftp_open, + .close = tftp_close, + .read = tftp_read, + .write = tftp_write }; void tftp_server_init(void) {