From 6a5ae86a8f90e39603f85c5156411f7cfb3ec381 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 10 Mar 2015 12:25:25 +0000 Subject: =?UTF-8?q?agent:=20Fix=20documentation=20to=20use=20=E2=80=98nul-?= =?UTF-8?q?terminated=E2=80=99=20for=20strings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NULL is ((gpointer) 0). nul is '\0'. Arrays can be NULL terminated. Strings can be nul terminated. --- agent/agent.h | 4 ++-- agent/candidate.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agent/agent.h b/agent/agent.h index d96ce6a..151f60e 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -563,9 +563,9 @@ nice_agent_gather_candidates ( * nice_agent_set_remote_credentials: * @agent: The #NiceAgent Object * @stream_id: The ID of the stream - * @ufrag: NULL-terminated string containing an ICE username fragment + * @ufrag: nul-terminated string containing an ICE username fragment * (length must be between 22 and 256 chars) - * @pwd: NULL-terminated string containing an ICE password + * @pwd: nul-terminated string containing an ICE password * (length must be between 4 and 256 chars) * * Sets the remote credentials for stream @stream_id. diff --git a/agent/candidate.h b/agent/candidate.h index 8c79f15..3111a4d 100644 --- a/agent/candidate.h +++ b/agent/candidate.h @@ -193,8 +193,8 @@ struct _NiceCandidate guint stream_id; guint component_id; gchar foundation[NICE_CANDIDATE_MAX_FOUNDATION]; - gchar *username; /* pointer to a NULL-terminated username string */ - gchar *password; /* pointer to a NULL-terminated password string */ + gchar *username; /* pointer to a nul-terminated username string */ + gchar *password; /* pointer to a nul-terminated password string */ TurnServer *turn; gpointer sockptr; }; -- cgit v1.2.1