git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] wrapper: indent with tabs

From
Denton Liu <liu.denton@gmail.com>
Date
Mar 28, 2020, 02:57 UTC
Message-ID
<9575aaacc500edd9ccf4416f79f1bc75ce9caf58.1585364237.git.liu.denton@gmail.com>

The codebase uses tabs for indentation. Convert an erroneous space indent into a tab indent.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
---
 wrapper.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wrapper.c b/wrapper.c
index e1eaef2e16..3a1c0e0526 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -218,7 +218,7 @@ ssize_t xread(int fd, void *buf, size_t len)
 {
 	ssize_t nr;
 	if (len > MAX_IO_SIZE)
-	    len = MAX_IO_SIZE;
+		len = MAX_IO_SIZE;
 	while (1) {
 		nr = read(fd, buf, len);
 		if (nr < 0) {
@@ -240,7 +240,7 @@ ssize_t xwrite(int fd, const void *buf, size_t len)
 {
 	ssize_t nr;
 	if (len > MAX_IO_SIZE)
-	    len = MAX_IO_SIZE;
+		len = MAX_IO_SIZE;
 	while (1) {
 		nr = write(fd, buf, len);
 		if (nr < 0) {
-- 
2.26.0.159.g23e2136ad0
Message 1 of 1 in “wrapper: indent with tabs”
  1. wrapper: indent with tabsDenton Liu, Mar 28, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.