]> git.deb.at Git - pkg/abook.git/blobdiff - ui.c
- don't try to use linux/termios.h
[pkg/abook.git] / ui.c
diff --git a/ui.c b/ui.c
index bde07e4fde9e45288580e6bd00cea188160df046..4f162e179149d68595a518c823e7e2e43de244f1 100644 (file)
--- a/ui.c
+++ b/ui.c
 #include "misc.h"
 #include "options.h"
 #include "filter.h"
+#include "xmalloc.h"
 #ifdef HAVE_CONFIG_H
 #      include "config.h"
 #endif
 #ifdef HAVE_TERMIOS_H
 #      include <termios.h>
-#else
-#      ifdef HAVE_LINUX_TERMIOS_H
-#              include <linux/termios.h>
-#      endif
 #endif
 #ifdef HAVE_SYS_IOCTL_H
 #      include <sys/ioctl.h>
@@ -605,7 +602,7 @@ ui_open_datafile()
                load_database(datafile);
        } else {
                free(datafile);
-               datafile = strdup(filename);
+               datafile = xstrdup(filename);
        }
 
        refresh_screen();