X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Ftypes.c;h=4e96f443645ca72cec72f21ae409617ee140a2b6;hp=b9576ea3109ab98e07ff3473f23983a5a0d77e14;hb=56e603733d2a16aba6fdaf149ad6a4cd42e44eda;hpb=a35173fe7e72fe456cbd19db34a5ff7a09a0c7ff diff --git a/types/types.c b/types/types.c index b9576ea3..4e96f443 100644 --- a/types/types.c +++ b/types/types.c @@ -5,7 +5,9 @@ * * Types registry. * - * Copyright 2010, 2011 - Mathieu Desnoyers + * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation + * + * Author: Mathieu Desnoyers * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -19,7 +21,7 @@ */ #include -#include +#include #include #include #include @@ -298,7 +300,7 @@ struct declaration_scope * scope->typedef_declarations = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, - (GDestroyNotify) definition_unref); + (GDestroyNotify) declaration_unref); scope->struct_declarations = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, (GDestroyNotify) declaration_unref); @@ -597,7 +599,6 @@ void free_definition_scope(struct definition_scope *scope) g_free(scope); } -static struct definition *lookup_definition(struct definition *definition, const char *field_name) {