]> git.deb.at Git - pkg/abook.git/blobdiff - abook.h
- add xstrdup to have proper checking for memory allocation failures
[pkg/abook.git] / abook.h
diff --git a/abook.h b/abook.h
index b5e7c7627bbd291d101bef9080d473b5c37fb0ab..0cdc513405db7b4bfba13cf4833854779b075cc6 100644 (file)
--- a/abook.h
+++ b/abook.h
@@ -17,8 +17,8 @@ int           strncasecmp (const char *, const char *, size_t);
 
 #define Y_STATUSLINE           (LINES - 2)
 
-#define MIN_LINES      20      
-#define MIN_COLS       70      
+#define MIN_LINES      20
+#define MIN_COLS       70
 
 #define DEFAULT_UMASK  066
 #define DIR_IN_HOME    ".abook"
@@ -38,7 +38,6 @@ int           strncasecmp (const char *, const char *, size_t);
 
 #define safe_atoi(X)    ((X == NULL) ? 0 : atoi(X))
 #define safe_str(X)    ((X == NULL) ? "" : X)
-#define safe_strdup(X) ((X == NULL) ? NULL : strdup(X))
 
 #ifndef min
 #       define min(x,y) (((x)<(y)) ? (x):(y))