summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/common.h b/common.h
index 175d038..bd196cb 100644
--- a/common.h
+++ b/common.h
@@ -21,6 +21,9 @@ void errstr(char *, ...);
/* malloc() with error check */
void *smalloc(size_t);
+/* realloc() with error check */
+void *srealloc(void *, size_t);
+
/* Safe strncpy - always finishes string */
void sstrncpy(char *, const char *, int);
@@ -30,12 +33,6 @@ void sstrncat(char *, const char *, int);
/* Safe version of strdup() */
char *sstrdup(const char *s);
-/* Test whether two file names are for the same device */
-int devcmp(const char *mtab_dev, char *user_dev);
-
-/* Test whether two file names are for the same directory */
-int dircmp(char *mtab_dir, char *user_dir);
-
/* Print version string */
void version(void);