Skip to content

Commit be8a82a

Browse files
committed
docs: Public headers, null -> NULL
1 parent 419d783 commit be8a82a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

toxcore/tox.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4071,8 +4071,8 @@ Tox_Connection tox_group_peer_get_connection_status(const Tox *tox, Tox_Group_Nu
40714071
* This key will be permanently tied to a particular peer until they explicitly leave the group and is
40724072
* the only way to reliably identify the same peer across client restarts.
40734073
*
4074-
* `public_key` should have room for at least TOX_GROUP_PEER_PUBLIC_KEY_SIZE bytes. If `public_key` is null
4075-
* this function has no effect.
4074+
* `public_key` should have room for at least TOX_GROUP_PEER_PUBLIC_KEY_SIZE
4075+
* bytes. If `public_key` is NULL this function has no effect.
40764076
*
40774077
* @param group_number The group number of the group we wish to query.
40784078
* @param peer_id The ID of the peer whose public key we wish to retrieve.
@@ -4449,7 +4449,7 @@ typedef enum Tox_Err_Group_Send_Message {
44494449
TOX_ERR_GROUP_SEND_MESSAGE_TOO_LONG,
44504450

44514451
/**
4452-
* The message pointer is null or length is zero.
4452+
* The message pointer is NULL or length is zero.
44534453
*/
44544454
TOX_ERR_GROUP_SEND_MESSAGE_EMPTY,
44554455

@@ -4524,7 +4524,7 @@ typedef enum Tox_Err_Group_Send_Private_Message {
45244524
TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_TOO_LONG,
45254525

45264526
/**
4527-
* The message pointer is null or length is zero.
4527+
* The message pointer is NULL or length is zero.
45284528
*/
45294529
TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_EMPTY,
45304530

@@ -4596,7 +4596,7 @@ typedef enum Tox_Err_Group_Send_Custom_Packet {
45964596
TOX_ERR_GROUP_SEND_CUSTOM_PACKET_TOO_LONG,
45974597

45984598
/**
4599-
* The message pointer is null or length is zero.
4599+
* The message pointer is NULL or length is zero.
46004600
*/
46014601
TOX_ERR_GROUP_SEND_CUSTOM_PACKET_EMPTY,
46024602

@@ -4664,7 +4664,7 @@ typedef enum Tox_Err_Group_Send_Custom_Private_Packet {
46644664
TOX_ERR_GROUP_SEND_CUSTOM_PRIVATE_PACKET_TOO_LONG,
46654665

46664666
/**
4667-
* The message pointer is null or length is zero.
4667+
* The message pointer is NULL or length is zero.
46684668
*/
46694669
TOX_ERR_GROUP_SEND_CUSTOM_PRIVATE_PACKET_EMPTY,
46704670

toxcore/tox_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ uint32_t tox_dht_node_public_key_size(void);
7878

7979
/**
8080
* @param public_key The node's public key.
81-
* @param ip The node's IP address, represented as a null terminated string.
81+
* @param ip The node's IP address, represented as a NULL terminated string.
8282
* @param port The node's port.
8383
*/
8484
typedef void tox_dht_get_nodes_response_cb(Tox *tox, const uint8_t *public_key, const char *ip, uint16_t port,

0 commit comments

Comments
 (0)