X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=doc%2Fexamples%2Frculfhash%2Fcds_lfht_for_each_entry_duplicate.c;h=14f39e1f8ba32534dd79bee243645205ba46ab78;hb=1c87adb3dde9011cc0ac576b5ec622a7c845a06a;hp=a975128f5be28397af4348206e94255fc754e05b;hpb=83e334d03eaba62df373cf44298616458900078a;p=urcu.git diff --git a/doc/examples/rculfhash/cds_lfht_for_each_entry_duplicate.c b/doc/examples/rculfhash/cds_lfht_for_each_entry_duplicate.c index a975128..14f39e1 100644 --- a/doc/examples/rculfhash/cds_lfht_for_each_entry_duplicate.c +++ b/doc/examples/rculfhash/cds_lfht_for_each_entry_duplicate.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to iterate on duplicate keys within a RCU * lock-free hash table. This hash table requires using a RCU scheme. */ @@ -42,7 +35,7 @@ int match(struct cds_lfht_node *ht_node, const void *_key) return *key == node->value; } -int main(int argc, char **argv) +int main(void) { int values[] = { -5, 42, 42, 36, 24, }; /* 42 is duplicated */ int lookup_values[] = { 42, 200, 36, };