I'm thinking about changing all the "char *dir" to "void *dir" in dir/buf.[ch]. If you think this is a bad idea, let me know. Otherwise I'll commit this on Monday.