X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fmetadata%2Fctf-parser-test.c;h=fed85f11466933e5eb592d30842ea98e943345e6;hb=8b596b57e1ff348a11b596b85278c17445e06afb;hp=72c45885dc939f62c1622fd0aea08e6ad7895d77;hpb=43e34335c78d923564d369e9af46b634ce9ad55f;p=babeltrace.git diff --git a/formats/ctf/metadata/ctf-parser-test.c b/formats/ctf/metadata/ctf-parser-test.c index 72c45885..fed85f11 100644 --- a/formats/ctf/metadata/ctf-parser-test.c +++ b/formats/ctf/metadata/ctf-parser-test.c @@ -14,6 +14,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 @@ -27,7 +35,7 @@ #include "ctf-parser.h" #include "ctf-ast.h" -int babeltrace_verbose, babeltrace_debug; +bool babeltrace_verbose, babeltrace_debug; int main(int argc, char **argv) { @@ -37,12 +45,12 @@ int main(int argc, char **argv) babeltrace_debug = 1; babeltrace_verbose = 1; - scanner = ctf_scanner_alloc(stdin); + scanner = ctf_scanner_alloc(); if (!scanner) { fprintf(stderr, "Error allocating scanner\n"); return -ENOMEM; } - ret = ctf_scanner_append_ast(scanner); + ret = ctf_scanner_append_ast(scanner, stdin); if (ret) { fprintf(stderr, "Error creating AST\n"); goto end;