diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-03-04 14:23:24 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-03-04 14:23:24 +0000 |
commit | f3a2909f29166d44f3f5b25e39bbe02a8fc9b86e (patch) | |
tree | 341f191ee4bc4a1d8a731caa5f44181683758647 /smbnetfs.c | |
parent | 4d76e911ebffe02142a6246888123979a6f5fea4 (diff) |
Add default argument values; improve error reports.
Diffstat (limited to 'smbnetfs.c')
-rw-r--r-- | smbnetfs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/smbnetfs.c b/smbnetfs.c index c673dd45c..3dfefb689 100644 --- a/smbnetfs.c +++ b/smbnetfs.c @@ -35,7 +35,12 @@ #define DIRENT_LEN(name_len) ((DIRENT_NAME_OFFS + (name_len) + 1 \ + (DIRENT_ALIGN - 1)) & ~(DIRENT_ALIGN - 1)) -struct smb_credentials credentials; +struct smb_credentials credentials = + { + .workgroup = "WORKGROUP", + .password = "" + }; + static volatile struct mapped_time_value *maptime; static struct mutex smb_mutex; |