*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
*/
#include <babeltrace/compiler.h>
#include <babeltrace/format.h>
#include <babeltrace/types.h>
-#include <endian.h>
+#include <babeltrace/endian.h>
static
struct definition *_float_definition_new(struct declaration *declaration,
container_of(declaration, struct declaration_float, p);
struct definition_float *_float;
struct definition *tmp;
- int ret;
_float = g_new(struct definition_float, 1);
declaration_ref(&float_declaration->p);
_float->p.name = field_name;
_float->value = 0.0;
if (parent_scope) {
+ int ret;
+
ret = register_field_definition(field_name, &_float->p,
parent_scope);
assert(!ret);