]> git.draconx.ca Git - cdecl99.git/blobdiff - t/normalize.c
Port to use getline.h from dxcommon.
[cdecl99.git] / t / normalize.c
index e309d70ec08b9be3be1cb3c8dc423ba1a51ca336..f55501b5cf27975f2c8a18bcfb7bb64ee089822d 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <errno.h>
 #include <getopt.h>
 
 #include "cdecl.h"
@@ -27,7 +28,6 @@
 
 #define PROGNAME "normalize"
 #include "test.h"
-#include "getline.h"
 
 static const char sopts[] = "f:VH";
 static const struct option lopts[] = {
@@ -197,7 +197,7 @@ int main(int argc, char **argv)
                return EXIT_FAILURE;
        }
 
-       while (do_getline(&line, &n)) {
+       while (test_getline(&line, &n)) {
                if (do_normalize(line, n) < 0)
                        ret = EXIT_FAILURE;
        }