X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Fstruct.c;h=3bbb8409230ff26afd0653cc40b909d112994f81;hp=8c1a5834eb58fa3825d9fb46996789f48ab99013;hb=ac65e35509398c6f3f27b26e9309750a565e1cbd;hpb=11796b9629d5a870163e4edd67e457576553aaef diff --git a/types/struct.c b/types/struct.c index 8c1a5834..3bbb8409 100644 --- a/types/struct.c +++ b/types/struct.c @@ -1,21 +1,19 @@ /* - * BabelTrace - Structure Type Converter + * struct.c * - * Copyright (c) 2010 Mathieu Desnoyers + * BabelTrace - Structure Type Converter * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * Copyright 2010 - Mathieu Desnoyers * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. */ #include @@ -37,7 +35,7 @@ void struct_copy(struct stream_pos *dest, const struct format *fdest, struct field, i); struct type_class *field_class = field->type_class; - field_class->copy(dest, fdest, src, fsrc, type_class); + field_class->copy(dest, fdest, src, fsrc, &field_class->p); } fsrc->struct_end(src, struct_class);