[PATCH] ntdb: always return int from tdb_store_flag_to_ntdb()

David Disseldorp ddiss at samba.org
Wed Feb 25 05:40:07 MST 2015


Signed-off-by: David Disseldorp <ddiss at samba.org>
---
 lib/dbwrap/dbwrap_ntdb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/dbwrap/dbwrap_ntdb.c b/lib/dbwrap/dbwrap_ntdb.c
index 5a8ce4b..1f34ef8 100644
--- a/lib/dbwrap/dbwrap_ntdb.c
+++ b/lib/dbwrap/dbwrap_ntdb.c
@@ -49,6 +49,7 @@ static int tdb_store_flag_to_ntdb(int tdb_flag)
 	default:
 		smb_panic("unknown tdb_flag");
 	}
+	return -1;	/* NOTREACHED */
 }
 
 static NTSTATUS db_ntdb_store(struct db_record *rec, NTDB_DATA data, int flag)
-- 
2.1.4



More information about the samba-technical mailing list