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

[PATCH] Fix test for command line syntax.

From
PEPeter Eriksen <s022018@student.dtu.dk>
Date
Apr 8, 2006, 20:24 UTC
Message-ID
<20060408202450.GA5548@bohr.gbar.dtu.dk>
Signed-off-by: Peter Eriksen <s022018@student.dtu.dk>
---
 test-delta.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
3e2552fff69fb01249fed53380e24e11754afcdf
diff --git a/test-delta.c b/test-delta.c
index 1be8ee0..94b47f0 100644
--- a/test-delta.c
+++ b/test-delta.c
@@ -27,7 +27,7 @@ int main(int argc, char *argv[])
 	void *from_buf, *data_buf, *out_buf;
 	unsigned long from_size, data_size, out_size;
 
-	if (argc != 5 || (strcmp(argv[1], "-d") && strcmp(argv[1], "-p"))) {
+	if (argc != 5 || (strcmp(argv[1], "-d") || strcmp(argv[1], "-p"))) {
 		fprintf(stderr, "Usage: %s\n", usage);
 		return 1;
 	}
-- 
1.3.0.rc1.g40e9
Next: Peter Eriksen
Message 1 of 2 in “Fix test for command line syntax.”
  1. Fix test for command line syntax.Peter Eriksen, Apr 8, 2006
  2. Peter EriksenApr 8, 2006

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.