summaryrefslogtreecommitdiffstats
path: root/utils/mount/mount_config.h
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-08-17 08:50:04 -0400
committerSteve Dickson <steved@redhat.com>2009-08-17 08:50:04 -0400
commitfd51c0c39017f44ceec4229f86eaa7c8e193ebdc (patch)
tree545ab2daa9355f19b67c3ce42a694f1dd286794c /utils/mount/mount_config.h
parent4d0175ad400ec56456765a15829557f1d541866a (diff)
downloadnfs-utils-fd51c0c39017f44ceec4229f86eaa7c8e193ebdc.tar.gz
nfs-utils-fd51c0c39017f44ceec4229f86eaa7c8e193ebdc.tar.xz
nfs-utils-fd51c0c39017f44ceec4229f86eaa7c8e193ebdc.zip
Cleaned up parsing errors to hopeful be more precise
Also had mount_config_init() call xlog_open() so the program name is set on xlog() calls. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount/mount_config.h')
-rw-r--r--utils/mount/mount_config.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/mount/mount_config.h b/utils/mount/mount_config.h
index 2af9f9d..9a885a9 100644
--- a/utils/mount/mount_config.h
+++ b/utils/mount/mount_config.h
@@ -16,14 +16,15 @@
*
*/
-inline void mount_config_init(void);
+inline void mount_config_init(char *);
#ifdef MOUNT_CONFIG
#include "conffile.h"
extern char *conf_get_mntopts(char *, char *, char *);
-inline void mount_config_init()
+inline void mount_config_init(char *program)
{
+ xlog_open(program);
/*
* Read the the default mount options
*/
@@ -36,7 +37,7 @@ inline char *mount_config_opts(char *spec,
}
#else /* MOUNT_CONFIG */
-inline void mount_config_init() { }
+inline void mount_config_init(char *program) { }
inline char *mount_config_opts(char *spec,
char *mount_point, char *mount_opts)