git: fd6217075e6a - main - tftpd tests: clean trailing whitespace
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Feb 2026 05:19:26 UTC
The branch main has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=fd6217075e6a5926bdc627145b38194b6c5ba8da
commit fd6217075e6a5926bdc627145b38194b6c5ba8da
Author: Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-02-03 05:17:54 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-02-03 05:19:08 +0000
tftpd tests: clean trailing whitespace
No functional change intended.
MFC after: 1 week
---
libexec/tftpd/tests/functional.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/libexec/tftpd/tests/functional.c b/libexec/tftpd/tests/functional.c
index 791aa9190a2f..c96abe635e24 100644
--- a/libexec/tftpd/tests/functional.c
+++ b/libexec/tftpd/tests/functional.c
@@ -113,7 +113,7 @@ recv_data(uint16_t blocknum, const char *contents, size_t contents_len)
RECV(hdr, msg, sizeof(msg)); \
} while (0)
-/*
+/*
* send a command to tftpd.
* @param cmd Command to send, as a char array
*/
@@ -140,7 +140,7 @@ send_data(uint16_t blocknum, const char *contents, size_t contents_len)
send_bytes(buffer, 4 + contents_len);
}
-/*
+/*
* send a command to tftpd.
* @param cmd Command to send, as a const string
* (terminating NUL will be ignored)
@@ -170,7 +170,7 @@ send_ack(uint16_t blocknum)
*/
#define OPTION_STR(name, value) name "\000" value "\000"
-/*
+/*
* send a read request to tftpd.
* @param filename filename as a string, absolute or relative
* @param mode either "octet" or "netascii"
@@ -184,7 +184,7 @@ send_ack(uint16_t blocknum)
#define SEND_RRQ_OPT(filename, mode, options) \
SEND_STR("\0\001" filename "\0" mode "\000" options)
-/*
+/*
* send a write request to tftpd.
* @param filename filename as a string, absolute or relative
* @param mode either "octet" or "netascii"
@@ -355,7 +355,7 @@ setup(struct sockaddr_storage *to, uint16_t idx)
}
ATF_REQUIRE_EQ(pwd, getcwd(pwd, sizeof(pwd)));
-
+
/* Must bind(2) pre-fork so it happens before the client's send(2) */
server_s = socket(protocol, SOCK_DGRAM, 0);
if (server_s < 0 && errno == EAFNOSUPPORT) {
@@ -678,7 +678,7 @@ TFTPD_TC_DEFINE(rrq_netascii,)
{
int fd;
char contents[] = "foo\nbar\rbaz\n";
- /*
+ /*
* Weirdly, RFC-764 says that CR must be followed by NUL if a line feed
* is not intended
*/
@@ -877,7 +877,7 @@ TFTPD_TC_DEFINE(wrq_dropped_ack,)
SEND_WRQ("medium.txt", "octet");
recv_ack(0);
send_data(1, (const char *)&contents[0], 512);
- /*
+ /*
* Servers "sends" an ACK packet, but network drops it.
* Eventually, server should resend the last ACK
*/
@@ -912,7 +912,7 @@ TFTPD_TC_DEFINE(wrq_dropped_data,)
SEND_WRQ("small.txt", "octet");
recv_ack(0);
- /*
+ /*
* Client "sends" a DATA packet, but network drops it.
* Eventually, server should resend the last ACK
*/
@@ -1068,7 +1068,7 @@ TFTPD_TC_DEFINE(wrq_netascii,)
{
int fd;
ssize_t r;
- /*
+ /*
* Weirdly, RFC-764 says that CR must be followed by NUL if a line feed
* is not intended
*/