]> git.deb.at Git - pkg/abook.git/blobdiff - ui.c
- remove usage of __id_u macro since it's not defined on every distro
[pkg/abook.git] / ui.c
diff --git a/ui.c b/ui.c
index bde07e4fde9e45288580e6bd00cea188160df046..40dc1e138f5a1344e67764df48676fce631e37f5 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>
 #endif
@@ -605,7 +599,7 @@ ui_open_datafile()
                load_database(datafile);
        } else {
                free(datafile);
-               datafile = strdup(filename);
+               datafile = xstrdup(filename);
        }
 
        refresh_screen();