From 479322eb1c84c1679c06dcefc70a6c7b9579aa0c Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 31 Jul 2014 16:52:50 +0200 Subject: [PATCH] do not use __ prefix for ordinary functions --- names.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/names.c b/names.c index 92aa4cd..f5ba37d 100644 --- a/names.c +++ b/names.c @@ -93,7 +93,7 @@ int kdbus_name_registry_new(struct kdbus_name_registry **reg) } static struct kdbus_name_entry * -__kdbus_name_lookup(struct kdbus_name_registry *reg, u32 hash, const char *name) +kdbus_name_lookup(struct kdbus_name_registry *reg, u32 hash, const char *name) { struct kdbus_name_entry *e; @@ -252,7 +252,7 @@ static int kdbus_name_release(struct kdbus_name_registry *reg, mutex_lock(&conn->bus->lock); down_write(®->rwlock); - e = __kdbus_name_lookup(reg, hash, name); + e = kdbus_name_lookup(reg, hash, name); if (!e) { ret = -ESRCH; goto exit_unlock; @@ -356,7 +356,7 @@ struct kdbus_name_entry *kdbus_name_lock(struct kdbus_name_registry *reg, u32 hash = kdbus_str_hash(name); down_read(®->rwlock); - e = __kdbus_name_lookup(reg, hash, name); + e = kdbus_name_lookup(reg, hash, name); if (e) return e; up_read(®->rwlock); @@ -486,7 +486,7 @@ int kdbus_name_acquire(struct kdbus_name_registry *reg, down_write(®->rwlock); hash = kdbus_str_hash(name); - e = __kdbus_name_lookup(reg, hash, name); + e = kdbus_name_lookup(reg, hash, name); if (e) { /* connection already owns that name */ if (e->conn == conn) { -- 2.34.1