You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ra...@apache.org on 2011/11/27 00:37:30 UTC

git commit: fix warnings in couch_icu_driver.c

Updated Branches:
  refs/heads/master 3bc6cc5ce -> c4f6ff9c6


fix warnings in couch_icu_driver.c


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/c4f6ff9c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/c4f6ff9c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/c4f6ff9c

Branch: refs/heads/master
Commit: c4f6ff9c6cf5512546d5799f05dd445a4da979b3
Parents: 3bc6cc5
Author: Randall Leeds <ra...@apache.org>
Authored: Sat Nov 26 15:32:44 2011 -0800
Committer: Randall Leeds <ra...@apache.org>
Committed: Sat Nov 26 15:32:44 2011 -0800

----------------------------------------------------------------------
 src/couchdb/priv/icu_driver/couch_icu_driver.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/c4f6ff9c/src/couchdb/priv/icu_driver/couch_icu_driver.c
----------------------------------------------------------------------
diff --git a/src/couchdb/priv/icu_driver/couch_icu_driver.c b/src/couchdb/priv/icu_driver/couch_icu_driver.c
index edfd84a..c627fca 100644
--- a/src/couchdb/priv/icu_driver/couch_icu_driver.c
+++ b/src/couchdb/priv/icu_driver/couch_icu_driver.c
@@ -30,6 +30,10 @@ specific language governing permissions and limitations under the License.
 #include <string.h> /* for memcpy */
 #endif
 
+#define DRIVER_NAME "couch_icu_driver"
+
+DRIVER_INIT(DRIVER_NAME); /* prototype for erl_driver entry point */
+
 typedef struct {
     ErlDrvPort port;
     UCollator* collNoCase;
@@ -155,7 +159,7 @@ ErlDrvEntry couch_driver_entry = {
         NULL,               /* F_PTR output, called when erlang has sent */
         NULL,               /* F_PTR ready_input, called when input descriptor ready */
         NULL,               /* F_PTR ready_output, called when output descriptor ready */
-        "couch_icu_driver", /* char *driver_name, the argument to open_port */
+        (char*)DRIVER_NAME, /* char *driver_name, the argument to open_port */
         NULL,               /* F_PTR finish, called when unloaded */
         NULL,               /* Not used */
         couch_drv_control,  /* F_PTR control, port_command callback */
@@ -173,7 +177,7 @@ ErlDrvEntry couch_driver_entry = {
         NULL,               /* F_PTR process_exit */
 };
 
-DRIVER_INIT(couch_icu_driver) /* must match name in driver_entry */
+DRIVER_INIT(DRIVER_NAME) /* must match name in driver_entry */
 {
         return &couch_driver_entry;
 }