*
* Strings read/write functions.
*
- * Copyright 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
+ *
+ * Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* all copies or substantial portions of the Software.
*/
-#include <babeltrace/babeltrace.h>
+#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/ctf/types.h>
#include <limits.h> /* C99 limits */
#include <string.h>
ctf_align_pos(pos, string_declaration->p.alignment);
srcaddr = ctf_get_pos_addr(pos);
- if (pos->offset == -EOF)
+ if (pos->offset == EOF)
return -EFAULT;
/* Not counting \0 */
max_len = pos->packet_size - pos->offset - 1;