~ubuntu-branches/ubuntu/trusty/libprelude/trusty

« back to all changes in this revision

Viewing changes to src/idmef-class.c

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2008-04-28 15:23:30 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080428152330-su7zlfscjjeh30ig
Tags: 0.9.17.1-1
New upstream release (remove debug output)

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
                return ret;
89
89
 
90
90
        list = object_data[class].children_list;
91
 
        
92
 
        if ( list ) {
93
 
                for ( i = 0; list[i].name; i++ )
94
 
                        if ( strcasecmp(list[i].name, name) == 0)
95
 
                                return i;
96
 
        }
 
91
 
 
92
        if ( list ) {
 
93
                for ( i = 0; list[i].name; i++ )
 
94
                        if ( strcasecmp(list[i].name, name) == 0)
 
95
                                return i;
 
96
        }
97
97
 
98
98
        return prelude_error_verbose(PRELUDE_ERROR_IDMEF_CLASS_UNKNOWN_CHILD, "Unknown IDMEF child '%s'", name);
99
99
}
230
230
 
231
231
 
232
232
 
 
233
int idmef_class_destroy_child(void *ptr, idmef_class_id_t class, idmef_class_child_id_t child, int n)
 
234
{
 
235
        int ret;
 
236
 
 
237
        ret = is_child_valid(class, child);
 
238
        if ( ret < 0 )
 
239
                return ret;
 
240
 
 
241
        return object_data[class].destroy_child(ptr, child, n);
 
242
}
 
243
 
 
244
 
233
245
int idmef_class_copy(idmef_class_id_t class, const void *src, void *dst)
234
246
{
235
247
        int ret;