Move to kernel style SPDX license identifiers
[babeltrace.git] / src / plugins / ctf / common / metadata / ctf-meta.h
index 71232b03e2500b30573cb7cea86a55eb8cca8796..ea6b9260fb47396980c936cff2fe4f1b04113f7e 100644 (file)
@@ -1,20 +1,12 @@
-#ifndef _CTF_META_H
-#define _CTF_META_H
-
 /*
- * Copyright 2018 - Philippe Proulx <pproulx@efficios.com>
- *
- * 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:
+ * SPDX-License-Identifier: MIT
  *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
+ * Copyright 2018 Philippe Proulx <pproulx@efficios.com>
  */
 
+#ifndef _CTF_META_H
+#define _CTF_META_H
+
 #include <babeltrace2/babeltrace.h>
 #include "common/common.h"
 #include "common/uuid.h"
@@ -684,7 +676,7 @@ void ctf_field_class_destroy(struct ctf_field_class *fc)
                _ctf_field_class_variant_destroy((void *) fc);
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 }
 
@@ -1056,7 +1048,7 @@ uint64_t ctf_field_class_compound_get_field_class_count(struct ctf_field_class *
                field_count = 1;
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 
        return field_count;
@@ -1152,7 +1144,7 @@ const char *ctf_scope_string(enum ctf_scope scope)
        case CTF_SCOPE_EVENT_PAYLOAD:
                return "EVENT_PAYLOAD";
        default:
-               abort();
+               bt_common_abort();
        }
 }
 
@@ -1211,7 +1203,7 @@ struct ctf_field_class *ctf_field_path_borrow_field_class(
                fc = ec->payload_fc;
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 
        BT_ASSERT_DBG(fc);
@@ -1474,7 +1466,7 @@ struct ctf_field_class *ctf_field_class_copy(struct ctf_field_class *fc)
                copy_fc = (void *) _ctf_field_class_variant_copy((void *) fc);
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 
        copy_fc->type = fc->type;
This page took 0.02409 seconds and 4 git commands to generate.