[SSSD] [PATCH] SYSDB: Modify declaration of sysdb_search_entry
Lukas Slebodnik
lslebodn at redhat.com
Mon Jun 23 07:34:49 UTC 2014
ehlo,
Type of parameter scope was changed s/int/enum ldb_scope/
This patch fixes warning from static analysers:
src/db/sysdb_ops.c:228: mixed_enum_type: enumerated type mixed with another
type.
LS
-------------- next part --------------
>From 117ba5ea260e480c09e91c6e602626882b89c177 Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lslebodn at redhat.com>
Date: Mon, 23 Jun 2014 07:26:46 +0200
Subject: [PATCH 3/3] SYSDB: Modify declaration of sysdb_search_entry
Type of parameter scope was changed s/int/enum ldb_scope/
This patch fixes warning from static analysers:
src/db/sysdb_ops.c:228: mixed_enum_type: enumerated type mixed with another
type
---
src/db/sysdb.h | 2 +-
src/db/sysdb_ops.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index 95834eed056dcdb964e621ced003f366b2f4c87c..911430eefcbf520ca04f123a3b6f1882dc25876b 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -503,7 +503,7 @@ int sysdb_delete_recursive(struct sysdb_ctx *sysdb,
int sysdb_search_entry(TALLOC_CTX *mem_ctx,
struct sysdb_ctx *sysdb,
struct ldb_dn *base_dn,
- int scope,
+ enum ldb_scope scope,
const char *filter,
const char **attrs,
size_t *_msgs_count,
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index 50f3391490c32e6f9343519378b823aa7d67f0ad..4d31cb6a0e83370a2c49a666f9474d93baf430b0 100644
--- a/src/db/sysdb_ops.c
+++ b/src/db/sysdb_ops.c
@@ -208,7 +208,7 @@ done:
int sysdb_search_entry(TALLOC_CTX *mem_ctx,
struct sysdb_ctx *sysdb,
struct ldb_dn *base_dn,
- int scope,
+ enum ldb_scope scope,
const char *filter,
const char **attrs,
size_t *_msgs_count,
--
1.9.3
More information about the sssd-devel
mailing list