Removed some old code. Added phony targets to the Makefile. - susmb - mounting of SMB/CIFS shares via FUSE
HTML git clone git://git.codemadness.org/susmb
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c43a2e4e311601dbbee65ff680b8ec388ecb543d
DIR parent ecf5e5c2e1afb93e4c503bf217cf3ddcf5601131
HTML Author: geoff <devnull@localhost>
Date: Sat, 6 May 2006 23:32:50 +0000
Removed some old code.
Added phony targets to the Makefile.
Diffstat:
M Makefile | 2 ++
M usmb.c | 24 ------------------------
2 files changed, 2 insertions(+), 24 deletions(-)
---
DIR diff --git a/Makefile b/Makefile
@@ -18,3 +18,5 @@ $(PROGRAM): $(OBJECTS)
clean:
$(RM) $(PROGRAM) $(OBJECTS)
+
+.PHONY: all clean
DIR diff --git a/usmb.c b/usmb.c
@@ -2,7 +2,6 @@
#include <libsmbclient.h>
#include <fuse.h>
#include <assert.h>
-#include <errno.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
@@ -84,29 +83,6 @@ char * make_url (const char *path)
return concat_strings (3, "smb:", share, path);
}
-#if 0
-static void dump_dirent (struct smbc_dirent *dirent)
-{
- switch (dirent->smbc_type)
- {
- case SMBC_WORKGROUP: fputs (" Workgroup", stdout); break;
- case SMBC_SERVER: fputs (" Server", stdout); break;
- case SMBC_FILE_SHARE: fputs (" File Share", stdout); break;
- case SMBC_PRINTER_SHARE: fputs ("Printer Share", stdout); break;
- case SMBC_COMMS_SHARE: fputs (" Comms Share", stdout); break;
- case SMBC_IPC_SHARE: fputs (" IPC Share", stdout); break;
- case SMBC_DIR: fputs (" Directory", stdout); break;
- case SMBC_FILE: fputs (" File", stdout); break;
- case SMBC_LINK: fputs (" Link", stdout); break;
- default: fputs (" Unknown", stdout); break;
- }
-
- fputs (" - ", stdout);
-
- puts (dirent->name);
-}
-#endif
-
static inline void do_strncpy (char *to, const char *from, int tolen)
{