here's an insanely simple patch that doesn't force it to be cast (char
*)
diff -uNr unionfs-20051020-1329.old/copyup.c unionfs-20051020-1329/copyup.c
--- unionfs-20051020-1329.old/copyup.c 2005-10-20 17:29:12.000000000 +0000
+++ unionfs-20051020-1329/copyup.c 2005-10-23 06:24:41.000000000 +0000
@@ -182,12 +182,12 @@
struct file **copyup_file, int len)
{
return copyup_named_dentry(dir, dentry, bstart, new_bindex,
- (char *)dentry->d_name.name,
+ dentry->d_name.name,
dentry->d_name.len, copyup_file, len);
}
int copyup_named_dentry(struct inode *dir, struct dentry *dentry,
- int bstart, int new_bindex, char *name,
+ int bstart, int new_bindex, const char *name,
int namelen, struct file **copyup_file, int len)
{
struct dentry *new_hidden_dentry;
diff -uNr unionfs-20051020-1329.old/unionfs.h unionfs-20051020-1329/unionfs.h
--- unionfs-20051020-1329.old/unionfs.h 2005-10-20 17:29:12.000000000 +0000
+++ unionfs-20051020-1329/unionfs.h 2005-10-23 06:25:09.000000000 +0000
@@ -320,7 +320,7 @@
extern int copyup_dentry(struct inode *dir, struct dentry *dentry, int bstart,
int new_bindex, struct file **copyup_file, int len);
extern int copyup_named_dentry(struct inode *dir, struct dentry *dentry,
- int bstart, int new_bindex, char *name,
+ int bstart, int new_bindex, const char *name,
int namelen, struct file **copyup_file, int len);
extern int remove_whiteouts(struct dentry *dentry, struct dentry *hidden_dentry,
_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs