FYI, cast removal and ChangeLog removal

Jim Meyering jim at meyering.net
Fri Oct 1 15:36:38 UTC 2010


FYI, just pushed this along with the test additions.

>From 4b78090d0043367ed7a408aa3f04615c4700f12a Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Thu, 30 Sep 2010 13:58:27 +0200
Subject: [PATCH] maint: remove empty/unused ChangeLog file

---
 .gitignore |    1 +
 autogen.sh |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)
 delete mode 100644 ChangeLog

diff --git a/.gitignore b/.gitignore
index e1f85df..e032047 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
 *~
 .\#*
 .deps
+ChangeLog
 Makefile
 Makefile.in
 \#*\#
diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644
index e69de29..0000000
diff --git a/autogen.sh b/autogen.sh
index 90e6c05..5f55a4b 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,3 +1,4 @@
 #!/bin/bash

-autoreconf -i
+test -f ChangeLog || touch ChangeLog
+autoreconf -iv
--
1.7.3.1.45.g9855b

>From 8a480375b7d4a48ea3c3d76b6a2b8eb6b202e3ab Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Wed, 29 Sep 2010 15:13:12 +0200
Subject: [PATCH] remove unnecessary casts

---
 rest.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rest.c b/rest.c
index 2172b31..5f06395 100644
--- a/rest.c
+++ b/rest.c
@@ -883,7 +883,7 @@ proxy_delete (void *cctx, struct MHD_Connection *conn, const char *url,

 	DPRINTF("PROXY DELETE %s\n",url);

-	rc = main_func_tbl->delete_func(ms->bucket,ms->key,(char *)url);
+	rc = main_func_tbl->delete_func(ms->bucket,ms->key,url);
 	if (rc == MHD_HTTP_OK) {
 		copied_url = strdup(url);
 		assert (copied_url);
@@ -891,7 +891,7 @@ proxy_delete (void *cctx, struct MHD_Connection *conn, const char *url,
 		key = strtok_r(NULL,"/",&stctx);
 		meta_delete(bucket,key);
 		free(copied_url);
-		replicate_delete((char *)url);
+		replicate_delete(url);
 	}

 	resp = MHD_create_response_from_data(0,NULL,MHD_NO,MHD_NO);
--
1.7.3.1.45.g9855b


More information about the iwhd-devel mailing list