NetworkManager/src/systemd/nm-sd-utils-core.c
Thomas Haller 88071abb43
all: unify comment style for SPDX-License-Identifier tag
Our coding style recommends C style comments (/* */) instead of C++
(//). Also, systemd (which we partly fork) uses C style comments for
the SPDX-License-Identifier.

Unify the style.

  $ sed -i '1 s#// SPDX-License-Identifier: \([^ ]\+\)$#/* SPDX-License-Identifier: \1 */#' -- $(git ls-files -- '*.[hc]' '*.[hc]pp')
2020-09-29 16:50:53 +02:00

27 lines
561 B
C

/* SPDX-License-Identifier: LGPL-2.1+ */
/*
* Copyright (C) 2018 Red Hat, Inc.
*/
#include "nm-default.h"
#include "nm-sd-utils-core.h"
#include "nm-core-internal.h"
#include "nm-sd-adapt-core.h"
#include "sd-id128.h"
/*****************************************************************************/
NMUuid *
nm_sd_utils_id128_get_machine(NMUuid *out_uuid)
{
g_assert(out_uuid);
G_STATIC_ASSERT_EXPR(sizeof(*out_uuid) == sizeof(sd_id128_t));
if (sd_id128_get_machine((sd_id128_t *) out_uuid) < 0)
return NULL;
return out_uuid;
}