diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:23:22 -0500 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:23:22 -0500 |
commit | fd0ca1c3f9b972a52d48a82b492fd6bac772dc78 (patch) | |
tree | 42d2a87726d196f4db1c68489007520a4c597062 /include/asterisk/stringfields.h | |
parent | 9ef97b5a9191e51f1edc66bb17728fd9fe552c35 (diff) |
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
Diffstat (limited to 'include/asterisk/stringfields.h')
-rw-r--r-- | include/asterisk/stringfields.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/asterisk/stringfields.h b/include/asterisk/stringfields.h index 24f945b26..69f2fcca4 100644 --- a/include/asterisk/stringfields.h +++ b/include/asterisk/stringfields.h @@ -27,7 +27,7 @@ Using this functionality is quite simple. An example structure with three fields is defined like this: - + \code struct sample_fields { int x1; @@ -39,14 +39,14 @@ long x2; }; \endcode - + When an instance of this structure is allocated (either statically or dynamically), the fields and the pool of storage for them must be initialized: - + \code struct sample_fields *x; - + x = ast_calloc(1, sizeof(*x)); if (x == NULL || ast_string_field_init(x, 252)) { if (x) @@ -62,7 +62,7 @@ ast_string_field_init(x, 0) will reset fields to the initial value while keeping the pool allocated. - + Reading the fields is much like using 'const char * const' fields in the structure: you cannot write to the field or to the memory it points to. @@ -88,7 +88,7 @@ When the structure instance is no longer needed, the fields and their storage pool must be freed: - + \code ast_string_field_free_memory(x); ast_free(x); |