diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-05-07 02:38:40 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-05-07 02:38:40 +0200 |
commit | 4c98b89e5c753b9d51ff21b846808faf710ee37f (patch) | |
tree | 7938b45ea649d693df59fbbd13ef98a3b087d726 /pceplib | |
parent | Merge pull request #11145 from donaldsharp/bgp_capability (diff) | |
download | frr-4c98b89e5c753b9d51ff21b846808faf710ee37f.tar.xz frr-4c98b89e5c753b9d51ff21b846808faf710ee37f.zip |
*: Fix doesnt spelling mistakes
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pceplib')
-rw-r--r-- | pceplib/pcep_msg_objects.c | 5 | ||||
-rw-r--r-- | pceplib/pcep_msg_objects_encoding.c | 8 | ||||
-rw-r--r-- | pceplib/pcep_socket_comm_loop.c | 2 | ||||
-rw-r--r-- | pceplib/test/pcep_session_logic_states_test.c | 2 |
4 files changed, 9 insertions, 8 deletions
diff --git a/pceplib/pcep_msg_objects.c b/pceplib/pcep_msg_objects.c index e253fcc54..ce41ee953 100644 --- a/pceplib/pcep_msg_objects.c +++ b/pceplib/pcep_msg_objects.c @@ -674,8 +674,9 @@ pcep_obj_create_ro_subobj_sr_ipv4_node(bool loose_hop, bool sid_absent, } obj->nai_list = dll_initialize(); /* Since the IP has to be stored in the list, copy it so the caller - * doesnt have any restrictions about the type of memory used externally - * for the IP. This memory will be freed with the object is freed. */ + * doesn't have any restrictions about the type of memory used + * externally for the IP. This memory will be freed with the object is + * freed. */ struct in_addr *ipv4_node_id_copy = pceplib_malloc(PCEPLIB_MESSAGES, sizeof(struct in_addr)); ipv4_node_id_copy->s_addr = ipv4_node_id->s_addr; diff --git a/pceplib/pcep_msg_objects_encoding.c b/pceplib/pcep_msg_objects_encoding.c index 69420f8e7..75eb112e2 100644 --- a/pceplib/pcep_msg_objects_encoding.c +++ b/pceplib/pcep_msg_objects_encoding.c @@ -463,7 +463,7 @@ uint16_t pcep_encode_obj_bandwidth(struct pcep_object_header *hdr, struct pcep_object_bandwidth *bandwidth = (struct pcep_object_bandwidth *)hdr; uint32_t *uint32_ptr = (uint32_t *)obj_body_buf; - /* Seems like the compiler doesnt correctly copy the float, so memcpy() + /* Seems like the compiler doesn't correctly copy the float, so memcpy() * it */ memcpy(uint32_ptr, &(bandwidth->bandwidth), sizeof(uint32_t)); *uint32_ptr = htonl(*uint32_ptr); @@ -481,7 +481,7 @@ uint16_t pcep_encode_obj_metric(struct pcep_object_header *hdr, | (metric->flag_b ? OBJECT_METRIC_FLAC_B : 0x00)); obj_body_buf[3] = metric->type; uint32_t *uint32_ptr = (uint32_t *)(obj_body_buf + 4); - /* Seems like the compiler doesnt correctly copy the float, so memcpy() + /* Seems like the compiler doesn't correctly copy the float, so memcpy() * it */ memcpy(uint32_ptr, &(metric->value), sizeof(uint32_t)); *uint32_ptr = htonl(*uint32_ptr); @@ -1206,7 +1206,7 @@ pcep_decode_obj_bandwidth(struct pcep_object_header *hdr, hdr, sizeof(struct pcep_object_bandwidth)); uint32_t value = ntohl(*((uint32_t *)obj_buf)); - /* Seems like the compiler doesnt correctly copy to the float, so + /* Seems like the compiler doesn't correctly copy to the float, so * memcpy() it */ memcpy(&obj->bandwidth, &value, sizeof(uint32_t)); @@ -1223,7 +1223,7 @@ pcep_decode_obj_metric(struct pcep_object_header *hdr, const uint8_t *obj_buf) obj->flag_c = (obj_buf[2] & OBJECT_METRIC_FLAC_C); obj->type = obj_buf[3]; uint32_t value = ntohl(*((uint32_t *)(obj_buf + 4))); - /* Seems like the compiler doesnt correctly copy to the float, so + /* Seems like the compiler doesn't correctly copy to the float, so * memcpy() it */ memcpy(&obj->value, &value, sizeof(uint32_t)); diff --git a/pceplib/pcep_socket_comm_loop.c b/pceplib/pcep_socket_comm_loop.c index d9a6b9ae4..ed8037d07 100644 --- a/pceplib/pcep_socket_comm_loop.c +++ b/pceplib/pcep_socket_comm_loop.c @@ -354,7 +354,7 @@ void handle_writes(pcep_socket_comm_handle *socket_comm_handle) if (comm_session->close_after_write == true) { if (comm_session->message_queue->num_entries == 0) { /* TODO check to make sure modifying the - * write_list while iterating it doesnt cause + * write_list while iterating it doesn't cause * problems. */ pcep_log( LOG_DEBUG, diff --git a/pceplib/test/pcep_session_logic_states_test.c b/pceplib/test/pcep_session_logic_states_test.c index e967d74e4..17ddae669 100644 --- a/pceplib/test/pcep_session_logic_states_test.c +++ b/pceplib/test/pcep_session_logic_states_test.c @@ -281,7 +281,7 @@ void test_handle_timer_event_open_keep_alive() void test_handle_socket_comm_event_null_params() { - /* Verify it doesnt core dump */ + /* Verify it doesn't core dump */ handle_socket_comm_event(NULL); verify_socket_comm_times_called(0, 0, 0, 0, 0, 0, 0); reset_mock_socket_comm_info(); |