X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf-text%2Ftypes%2Fstring.c;h=f49d1b7e4459ff239a3d7e1bc93525f0f5bdf1b9;hp=82bc361f2b96931cbe1f79be93a777f5b0940fd8;hb=1cf393f63db4dce618515749d5549564d1313ee4;hpb=01c76b246be85b5d9c8e99813950fb194c9f714f diff --git a/formats/ctf-text/types/string.c b/formats/ctf-text/types/string.c index 82bc361f..f49d1b7e 100644 --- a/formats/ctf-text/types/string.c +++ b/formats/ctf-text/types/string.c @@ -16,6 +16,14 @@ * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. */ #include @@ -23,7 +31,7 @@ #include /* C99 limits */ #include -int ctf_text_string_write(struct stream_pos *ppos, +int ctf_text_string_write(struct bt_stream_pos *ppos, struct definition *definition) { struct definition_string *string_definition = @@ -43,7 +51,7 @@ int ctf_text_string_write(struct stream_pos *ppos, fprintf(pos->fp, " "); if (pos->print_names) fprintf(pos->fp, "%s = ", - g_quark_to_string(definition->name)); + rem_(g_quark_to_string(definition->name))); fprintf(pos->fp, "\"%s\"", string_definition->value); return 0;