Pārlūkot izejas kodu

Ticket 47451 - Fix jenkins errors

Description:  Fix compiler warnings

https://fedorahosted.org/389/ticket/47451
Mark Reynolds 11 gadi atpakaļ
vecāks
revīzija
3e1d97624f

+ 1 - 5
ldap/servers/plugins/dna/dna.c

@@ -2406,7 +2406,7 @@ static int dna_get_next_value(struct configEntry *config_entry,
         } else {
         } else {
             /* dna_first_free_value() failed for some unknown reason */
             /* dna_first_free_value() failed for some unknown reason */
             slapi_log_error(SLAPI_LOG_FATAL, DNA_PLUGIN_SUBSYSTEM,
             slapi_log_error(SLAPI_LOG_FATAL, DNA_PLUGIN_SUBSYSTEM,
-                            "dna_get_next_value: failed to allocate a new ID!! (set(%d) (max: %d)\n",setval,config_entry->maxval);
+                            "dna_get_next_value: failed to allocate a new ID!!\n");
             goto done;
             goto done;
         }
         }
     }
     }
@@ -3415,8 +3415,6 @@ _dna_pre_op_add(Slapi_PBlock *pb, Slapi_Entry *e, char **errstr)
                         /* dna_first_free_value() failed for some unknown reason */
                         /* dna_first_free_value() failed for some unknown reason */
                         slapi_log_error(SLAPI_LOG_FATAL, DNA_PLUGIN_SUBSYSTEM,
                         slapi_log_error(SLAPI_LOG_FATAL, DNA_PLUGIN_SUBSYSTEM,
                                         "dna_pre_op: failed to allocate a new ID!! 2\n");
                                         "dna_pre_op: failed to allocate a new ID!! 2\n");
-                        slapi_log_error(SLAPI_LOG_FATAL, DNA_PLUGIN_SUBSYSTEM,
-                                                    "dna_get_next_value: failed to allocate a new ID!! (set(%d) (max: %d)\n",setval,config_entry->maxval);
                         /* Set an error string to be returned to the client. */
                         /* Set an error string to be returned to the client. */
                         *errstr = slapi_ch_smprintf("Allocation of a new value for range"
                         *errstr = slapi_ch_smprintf("Allocation of a new value for range"
                                                " %s failed! Unable to proceed.",
                                                " %s failed! Unable to proceed.",
@@ -3682,8 +3680,6 @@ _dna_pre_op_modify(Slapi_PBlock *pb, Slapi_Entry *e, Slapi_Mods *smods, char **e
                         /* dna_first_free_value() failed for some unknown reason */
                         /* dna_first_free_value() failed for some unknown reason */
                         slapi_log_error(SLAPI_LOG_FATAL, DNA_PLUGIN_SUBSYSTEM,
                         slapi_log_error(SLAPI_LOG_FATAL, DNA_PLUGIN_SUBSYSTEM,
                                         "dna_pre_op: failed to allocate a new ID!!\n");
                                         "dna_pre_op: failed to allocate a new ID!!\n");
-                        slapi_log_error(SLAPI_LOG_FATAL, DNA_PLUGIN_SUBSYSTEM,
-                                                    "dna_get_next_value: failed to allocate a new ID!! (set(%d) (max: %d)\n",setval,config_entry->maxval);
                         /* Set an error string to be returned to the client. */
                         /* Set an error string to be returned to the client. */
                         *errstr = slapi_ch_smprintf("Allocation of a new value for range"
                         *errstr = slapi_ch_smprintf("Allocation of a new value for range"
                                            " %s failed! Unable to proceed.",
                                            " %s failed! Unable to proceed.",

+ 0 - 2
ldap/servers/plugins/uiduniq/uid.c

@@ -1285,7 +1285,6 @@ uiduniq_start(Slapi_PBlock *pb)
 static int
 static int
 uiduniq_close(Slapi_PBlock *pb)
 uiduniq_close(Slapi_PBlock *pb)
 {
 {
-    Slapi_Entry *plugin_entry = NULL;
     struct attr_uniqueness_config *config = NULL;
     struct attr_uniqueness_config *config = NULL;
 
 
     slapi_pblock_get(pb, SLAPI_PLUGIN_PRIVATE, &config);
     slapi_pblock_get(pb, SLAPI_PLUGIN_PRIVATE, &config);
@@ -1312,7 +1311,6 @@ NSUniqueAttr_Init(Slapi_PBlock *pb)
   int preadd = SLAPI_PLUGIN_PRE_ADD_FN;
   int preadd = SLAPI_PLUGIN_PRE_ADD_FN;
   int premod = SLAPI_PLUGIN_PRE_MODIFY_FN;
   int premod = SLAPI_PLUGIN_PRE_MODIFY_FN;
   int premdn = SLAPI_PLUGIN_PRE_MODRDN_FN;
   int premdn = SLAPI_PLUGIN_PRE_MODRDN_FN;
-  struct attr_uniqueness_config *config = NULL;
 
 
   BEGIN
   BEGIN