@@ -19,8 +19,8 @@ null_args(void **state)
1919 GHashTable * tbl = pcmk__strkey_table (free , free );
2020 unsigned int result = 0 ;
2121
22- assert_int_equal (pcmk__guint_from_hash (NULL , "abc" , 123 , & result ), EINVAL );
23- assert_int_equal (pcmk__guint_from_hash (tbl , NULL , 123 , & result ), EINVAL );
22+ assert_int_equal (pcmk__uint_from_hash (NULL , "abc" , 123 , & result ), EINVAL );
23+ assert_int_equal (pcmk__uint_from_hash (tbl , NULL , 123 , & result ), EINVAL );
2424
2525 g_hash_table_destroy (tbl );
2626}
@@ -31,7 +31,8 @@ missing_key(void **state)
3131 GHashTable * tbl = pcmk__strkey_table (free , free );
3232 unsigned int result = 0 ;
3333
34- assert_int_equal (pcmk__guint_from_hash (tbl , "abc" , 123 , & result ), pcmk_rc_ok );
34+ assert_int_equal (pcmk__uint_from_hash (tbl , "abc" , 123 , & result ),
35+ pcmk_rc_ok );
3536 assert_int_equal (result , 123 );
3637
3738 g_hash_table_destroy (tbl );
@@ -45,7 +46,8 @@ standard_usage(void **state)
4546
4647 g_hash_table_insert (tbl , strdup ("abc" ), strdup ("123" ));
4748
48- assert_int_equal (pcmk__guint_from_hash (tbl , "abc" , 456 , & result ), pcmk_rc_ok );
49+ assert_int_equal (pcmk__uint_from_hash (tbl , "abc" , 456 , & result ),
50+ pcmk_rc_ok );
4951 assert_int_equal (result , 123 );
5052
5153 g_hash_table_destroy (tbl );
@@ -61,13 +63,14 @@ conversion_errors(void **state)
6163 g_hash_table_insert (tbl , strdup ("toobig" ), strdup ("20000000000000000" ));
6264 g_hash_table_insert (tbl , strdup ("baddata" ), strdup ("asdf" ));
6365
64- assert_int_equal (pcmk__guint_from_hash (tbl , "negative" , 456 , & result ), ERANGE );
66+ assert_int_equal (pcmk__uint_from_hash (tbl , "negative" , 456 , & result ),
67+ ERANGE );
6568 assert_int_equal (result , 456 );
6669
67- assert_int_equal (pcmk__guint_from_hash (tbl , "toobig" , 456 , & result ), ERANGE );
70+ assert_int_equal (pcmk__uint_from_hash (tbl , "toobig" , 456 , & result ), ERANGE );
6871 assert_int_equal (result , 456 );
6972
70- assert_int_equal (pcmk__guint_from_hash (tbl , "baddata" , 456 , & result ),
73+ assert_int_equal (pcmk__uint_from_hash (tbl , "baddata" , 456 , & result ),
7174 pcmk_rc_bad_input );
7275 assert_int_equal (result , 456 );
7376
0 commit comments