/*
- * $Id: adv1tov2.c,v 1.4 2005-04-28 20:49:18 bfernhomberg Exp $
+ * $Id: adv1tov2.c,v 1.5 2009-10-14 01:38:28 didg Exp $
* v1tov2: given a root directory, run down and convert all the
* files/directories into appledouble v2.
*/
#define MAXDESCEND 0xFFFF
/* recursively descend subdirectories.
* oh the stack space we use up! */
-void descend(DIR *dp)
+static void descend(DIR *dp)
{
DIR *dpnew;
struct dirent *de;
/*
- * $Id: aecho.c,v 1.8 2009-10-13 22:55:36 didg Exp $
+ * $Id: aecho.c,v 1.9 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
#define SOCKLEN_T unsigned int
#endif /* ! SOCKLEN_T */
-struct sockaddr_at target;
-int sock;
-unsigned int nsent = 0, nrecv = 0;
-time_t totalms = 0, minms = -1, maxms = -1;
-unsigned int pings = 0;
+static struct sockaddr_at target;
+static int sock;
+static unsigned int nsent = 0, nrecv = 0;
+static time_t totalms = 0, minms = -1, maxms = -1;
+static unsigned int pings = 0;
-void usage(char *);
+static void usage(char *);
-void done(int sig _U_)
+static void done(int sig _U_)
{
if ( nsent) {
printf( "\n----%d.%d AEP Statistics----\n",
exit( 0 );
}
-void aep_send(int sig _U_)
+static void aep_send(int sig _U_)
{
struct timeval tv;
char *p, buf[ 1024 ];
}
}
-void usage( char * av0 )
+static void usage( char * av0 )
{
fprintf( stderr, "usage:\t%s [-A source address ] [-c count] ( addr | nbpname )\n", av0 );
exit( 1 );
/*
- * $Id: achfile.c,v 1.6 2009-10-13 22:55:36 didg Exp $
+ * $Id: achfile.c,v 1.7 2009-10-14 01:38:28 didg Exp $
*
afile - determine the MacOS creator/type of files
#include "common.h"
/* Global Variables */
-const char *type = NULL;
-const char *creator = NULL;
+static const char *type = NULL;
+static const char *creator = NULL;
/* Print usage information. */
-void usage(char *prog)
+static void usage(char *prog)
{
fprintf(stderr, "Usage: %s [-t TYPE] [-c CREATOR] FILE ...\n", prog);
}
/* Print extensive help. */
-void help(char *prog)
+static void help(char *prog)
{
usage(prog);
fprintf(stderr,
}
/* Print the version. */
-void version(void)
+static void version(void)
{
fprintf(stderr, "achfile (netatalk " VERSION ")\n");
}
* known long options: --help, --version
*/
#define OPTSTRING "t:c:hv-:"
-const char *get_long_arg(int argc, char *argv[], const char *arg, const char *oa) {
+static const char *get_long_arg(int argc, char *argv[], const char *arg, const char *oa) {
switch (*oa) {
case '=':
return &oa[1];
}
}
-int parse_args(int argc, char *argv[])
+static int parse_args(int argc, char *argv[])
{
int c;
const char *longarg;
/* Change the owner/creator of each file specified on the command line. */
-int handle_file(const char *filename)
+static int handle_file(const char *filename)
{
int fd;
struct stat statbuf;
/*
- * $Id: afile.c,v 1.6 2009-10-13 22:55:36 didg Exp $
+ * $Id: afile.c,v 1.7 2009-10-14 01:38:28 didg Exp $
*
afile - determine the MacOS creator/type of files
/* Global Variables */
-int showall = 0;
+static int showall = 0;
/* Print usage information. */
-void usage(char *prog)
+static void usage(char *prog)
{
fprintf(stderr, "Usage: %s [-a] FILE ...\n", prog);
}
/* Print extensive help. */
-void help(char *prog)
+static void help(char *prog)
{
usage(prog);
fprintf(stderr,
}
/* Print the version. */
-void version(void)
+static void version(void)
{
fprintf(stderr, "afile (netatalk " VERSION ")\n");
}
* known long options: --show-all, --help, --version
*/
#define OPTSTRING "ahv-:"
-int parse_args(int argc, char *argv[])
+static int parse_args(int argc, char *argv[])
{
int c;
/* Print the creator/type as taken from the supplied character stream, which
* must be a AppleDouble file header.
*/
-void print_type(const char *filename, const char *creator, const char *type)
+static void print_type(const char *filename, const char *creator, const char *type)
{
printf("%4.4s %4.4s %s\n", creator, type, filename);
}
-int handle_ad(struct AFile *rfile)
+static int handle_ad(struct AFile *rfile)
{
int fd;
char *dataname;
}
-int handle_datafile(struct AFile *datafile)
+static int handle_datafile(struct AFile *datafile)
{
int ret;
char *adname;
/* Parse a file and its resource fork. Output the file's creator/type. */
-int parse_file(char *filename)
+static int parse_file(char *filename)
{
int ret;
struct AFile *afile;
/*
- $Id: ad_ls.c,v 1.3 2009-10-13 22:55:36 didg Exp $
+ $Id: ad_ls.c,v 1.4 2009-10-14 01:38:28 didg Exp $
Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
#undef TYPE
#undef MODE
-int ad_print(char *path, const struct stat *st, afpvol_t *vol)
+static int ad_print(char *path, const struct stat *st, afpvol_t *vol)
{
if ( ! ls_l) {
printf("%s ", path);
return 0;
}
-int ad_ls_r(char *path, afpvol_t *vol)
+static int ad_ls_r(char *path, afpvol_t *vol)
{
int ret = 0, cwd, dirprinted = 0, dirempty;
const char *name;
/*
- * $Id: getzones.c,v 1.8 2009-10-13 22:55:36 didg Exp $
+ * $Id: getzones.c,v 1.9 2009-10-14 01:38:28 didg Exp $
*/
#ifdef HAVE_CONFIG_H
#include <atalk/unicode.h>
#include <atalk/zip.h>
-void print_zones(short n, char *buf);
+static void print_zones(short n, char *buf);
-void usage( char *s)
+static void usage( char *s)
{
fprintf( stderr, "usage:\t%s [-m | -l] [address]\n", s );
exit( 1 );
* n: number of zones in this packet
* buf: zone length/name pairs
*/
-void print_zones( short n, char *buf )
+static void print_zones( short n, char *buf )
{
size_t zone_len;
char *zone;
/*
- * $Id: asingle.c,v 1.12 2009-10-13 22:55:36 didg Exp $
+ * $Id: asingle.c,v 1.13 2009-10-14 01:38:28 didg Exp $
*/
#ifdef HAVE_CONFIG_H
following globals; therefore this module can only be used
for one of the two functions at a time.
*/
-struct single_file_data {
+static struct single_file_data {
int filed;
char path[ MAXPATHLEN + 1];
struct ad_entry entry[ ADEID_MAX ];
} single;
extern char *forkname[];
-u_char header_buf[ AD_HEADER_LEN ];
+static u_char header_buf[ AD_HEADER_LEN ];
/*
* single_open must be called first. pass it a filename that is supposed
* "Macintosh " (that is seven blanks of padding).
*/
#define MACINTOSH "Macintosh "
-u_char sixteennulls[] = { 0, 0, 0, 0, 0, 0, 0, 0,
+static u_char sixteennulls[] = { 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0 };
int single_header_test(void)
/*
- * $Id: hqx.c,v 1.15 2009-10-13 22:55:36 didg Exp $
+ * $Id: hqx.c,v 1.16 2009-10-14 01:38:28 didg Exp $
*/
#ifdef HAVE_CONFIG_H
FILE *rawhex, *expandhex;
#endif /* HEXOUTPUT */
-struct hqx_file_data {
+static struct hqx_file_data {
u_int32_t forklen[ NUMFORKS ];
u_short forkcrc[ NUMFORKS ];
char path[ MAXPATHLEN + 1];
} hqx;
extern char *forkname[];
-u_char hqx7_buf[8192];
-u_char *hqx7_first;
-u_char *hqx7_last;
-int first_flag;
+static u_char hqx7_buf[8192];
+static u_char *hqx7_first;
+static u_char *hqx7_last;
+static int first_flag;
/*
hqx_open must be called first. pass it a filename that is supposed
0xFC signals a whitespace character.
*/
-u_char hqxlookup[] = {
+static const u_char hqxlookup[] = {
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFC, 0xFE, 0xFF, 0xFF, 0xFE, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
/*
- * $Id: macbin.c,v 1.13 2009-10-13 22:55:36 didg Exp $
+ * $Id: macbin.c,v 1.14 2009-10-14 01:38:28 didg Exp $
*/
#ifdef HAVE_CONFIG_H
following globals; therefore this module can only be used
for one of the two functions at a time.
*/
-struct bin_file_data {
+static struct bin_file_data {
u_int32_t forklen[ NUMFORKS ];
char path[ MAXPATHLEN + 1];
int filed;
} bin;
extern char *forkname[];
-u_char head_buf[HEADBUFSIZ];
+static u_char head_buf[HEADBUFSIZ];
/*
* bin_open must be called first. pass it a filename that is supposed
/*
- * $Id: megatron.c,v 1.11 2009-10-13 22:55:36 didg Exp $
+ * $Id: megatron.c,v 1.12 2009-10-14 01:38:28 didg Exp $
*/
#ifdef HAVE_CONFIG_H
#include "macbin.h"
#include "nad.h"
-char forkbuf[8192];
char *forkname[] = { "data", "resource" };
-char *name[] = { "unhex",
+static char forkbuf[8192];
+static char *name[] = { "unhex",
"unbin",
"unsingle",
"macbinary",
"binheader",
"megatron" };
-int from_open(int un, char *file, struct FHeader *fh, int flags)
+static int from_open(int un, char *file, struct FHeader *fh, int flags)
{
switch ( un ) {
case MEGATRON :
}
}
-int from_read(int un, int fork, char *buf, int len)
+static int from_read(int un, int fork, char *buf, int len)
{
switch ( un ) {
case MEGATRON :
}
}
-int from_close(int un)
+static int from_close(int un)
{
switch ( un ) {
case MEGATRON :
}
}
-int to_open(int to, char *file, struct FHeader *fh, int flags)
+static int to_open(int to, char *file, struct FHeader *fh, int flags)
{
switch ( to ) {
case MEGATRON :
}
}
-int to_write(int to, int fork, int bufc)
+static int to_write(int to, int fork, int bufc)
{
switch ( to ) {
case MEGATRON :
}
}
-int to_close(int to, int keepflag)
+static int to_close(int to, int keepflag)
{
switch ( to ) {
case MEGATRON :
}
}
-int megatron( char *path, int module, char *newname, int flags)
+static int megatron( char *path, int module, char *newname, int flags)
{
struct stat st;
struct FHeader fh;
/*
- * $Id: megatron.h,v 1.4 2009-10-13 22:55:36 didg Exp $
+ * $Id: megatron.h,v 1.5 2009-10-14 01:38:28 didg Exp $
*/
#ifndef _MEGATRON_H
# define S_ISDIR(s) (( s & S_IFMT ) == S_IFDIR )
#endif /* ! S_ISDIR */
+extern char *forkname[];
extern char *(*_mtoupath) ( char *);
extern char *(*_utompath) ( char *);
#define mtoupath(s) (*_mtoupath)(s)
/*
- * $Id: nad.c,v 1.16 2009-10-13 22:55:36 didg Exp $
+ * $Id: nad.c,v 1.17 2009-10-14 01:38:28 didg Exp $
*/
#ifdef HAVE_CONFIG_H
#include "megatron.h"
#include "nad.h"
-struct volinfo vol;
+static struct volinfo vol;
static char hexdig[] = "0123456789abcdef";
static char mtou_buf[MAXPATHLEN + 1], utom_buf[MAXPATHLEN + 1];
return(utompathcap( upath ));
}
-char *mtoupathiconv(char *mpath)
+static char *mtoupathiconv(char *mpath)
{
char *m, *u;
size_t inplen;
int hexfork[ NUMFORKS ];
#endif /* HEXOUTPUT */
-struct nad_file_data {
+static struct nad_file_data {
char macname[ MAXPATHLEN + 1 ];
char adpath[ 2 ][ MAXPATHLEN + 1];
int offset[ NUMFORKS ];
return( 0 );
}
-int forkeid[] = { ADEID_DFORK, ADEID_RFORK };
+static int forkeid[] = { ADEID_DFORK, ADEID_RFORK };
int nad_read(int fork, char *forkbuf, int bufc)
{
/*
- * $Id: nbplkup.c,v 1.6 2009-10-13 22:55:36 didg Exp $
+ * $Id: nbplkup.c,v 1.7 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
#include <atalk/unicode.h>
-char *Obj = "=";
-char *Type = "=";
-char *Zone = "*";
+static char *Obj = "=";
+static char *Type = "=";
+static char *Zone = "*";
-void Usage(char *av0)
+static void Usage(char *av0)
{
char *p;
/*
- * $Id: nbprgstr.c,v 1.6 2009-10-13 22:55:36 didg Exp $
+ * $Id: nbprgstr.c,v 1.7 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#include <atalk/util.h>
#include <atalk/unicode.h>
-void Usage(char *av0)
+static void Usage(char *av0)
{
char *p;
/*
- * $Id: nbpunrgstr.c,v 1.7 2009-10-13 22:55:36 didg Exp $
+ * $Id: nbpunrgstr.c,v 1.8 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
#include <atalk/unicode.h>
-void Usage(char *av0)
+static void Usage(char *av0)
{
char *p;
/*
- * $Id: pap.c,v 1.11 2009-10-13 22:55:36 didg Exp $
+ * $Id: pap.c,v 1.12 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#define FUCKED
#define _PATH_PAPRC ".paprc"
-char *nbpfailure = "AppleTalk printer offline";
+static char *nbpfailure = "AppleTalk printer offline";
/* Forward Declarations */
-void updatestatus(char *s, int len);
-int send_file(int fd, ATP atp, int lastfile);
+static void updatestatus(char *s, int len);
+static int send_file(int fd, ATP atp, int lastfile);
-void usage(char *path)
+static void usage(char *path)
{
char *p;
exit( 2 );
}
-char *
+static char *
paprc(void)
{
static char s[ 32 + 1 + 32 + 1 + 32 ];
return( name );
}
-char *printer = NULL;
-char *status = NULL;
-int noeof = 0;
-int waitforprinter = 0;
+static char *printer = NULL;
+static char *status = NULL;
+static int noeof = 0;
+static int waitforprinter = 0;
-unsigned char connid, quantum, oquantum = PAP_MAXQUANTUM;
-struct sockaddr_at sat;
+static unsigned char connid, quantum, oquantum = PAP_MAXQUANTUM;
+static struct sockaddr_at sat;
-char cbuf[ 8 ];
-struct nbpnve nn;
-ATP satp;
+static char cbuf[ 8 ];
+static struct nbpnve nn;
+static ATP satp;
-char fbuf[ PAP_MAXQUANTUM ][ 4 + PAP_MAXDATA ];
-struct iovec rfiov[ PAP_MAXQUANTUM ] = {
+static char fbuf[ PAP_MAXQUANTUM ][ 4 + PAP_MAXDATA ];
+static struct iovec rfiov[ PAP_MAXQUANTUM ] = {
{ fbuf[ 0 ] + 4, 0 },
{ fbuf[ 1 ] + 4, 0 },
{ fbuf[ 2 ] + 4, 0 },
{ fbuf[ 6 ] + 4, 0 },
{ fbuf[ 7 ] + 4, 0 },
};
-struct iovec sniov[ PAP_MAXQUANTUM ] = {
+
+static struct iovec sniov[ PAP_MAXQUANTUM ] = {
{ fbuf[ 0 ], 0 },
{ fbuf[ 1 ], 0 },
{ fbuf[ 2 ], 0 },
{ fbuf[ 7 ], 0 },
};
-char nbuf[ PAP_MAXQUANTUM ][ 4 + PAP_MAXDATA ];
-struct iovec rniov[ PAP_MAXQUANTUM ] = {
+static char nbuf[ PAP_MAXQUANTUM ][ 4 + PAP_MAXDATA ];
+static struct iovec rniov[ PAP_MAXQUANTUM ] = {
{ nbuf[ 0 ], 0 },
{ nbuf[ 1 ], 0 },
{ nbuf[ 2 ], 0 },
{ nbuf[ 6 ], 0 },
{ nbuf[ 7 ], 0 },
};
-struct iovec sfiov[ PAP_MAXQUANTUM ] = {
+
+static struct iovec sfiov[ PAP_MAXQUANTUM ] = {
{ nbuf[ 0 ] + 4, 0 },
{ nbuf[ 1 ] + 4, 0 },
{ nbuf[ 2 ] + 4, 0 },
{ nbuf[ 7 ] + 4, 0 },
};
-int debug;
+static int debug;
int main( int ac, char **av)
{
exit( 0 );
}
-int data = 0;
-unsigned char port;
-u_int16_t seq = 0, rseq = 1;
+static int data = 0;
+static unsigned char port;
+static u_int16_t seq = 0, rseq = 1;
-int send_file( int fd, ATP atp, int lastfile)
+static int send_file( int fd, ATP atp, int lastfile)
{
struct timeval stv, tv;
struct sockaddr_at ssat;
}
}
-void updatestatus(char *s, int len)
+static void updatestatus(char *s, int len)
{
int fd = -1;
struct iovec iov[ 3 ];
/*
- * $Id: papstatus.c,v 1.6 2009-10-13 22:55:36 didg Exp $
+ * $Id: papstatus.c,v 1.7 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
#define _PATH_PAPRC ".paprc"
/* Forward Declaration */
-void getstatus(ATP atp, struct sockaddr_at *sat);
+static void getstatus(ATP atp, struct sockaddr_at *sat);
-void usage(char *path)
+static void usage(char *path)
{
char *p;
exit( 1 );
}
-char *
+static char *
paprc(void)
{
static char s[ 32 + 1 + 32 + 1 + 32 ];
return( name );
}
-char *printer = NULL;
+static char *printer = NULL;
-char cbuf[ 8 ];
-struct nbpnve nn;
+static char cbuf[ 8 ];
+static struct nbpnve nn;
int main( int ac, char **av)
{
return 0;
}
-void getstatus(ATP atp, struct sockaddr_at *sat)
+static void getstatus(ATP atp, struct sockaddr_at *sat)
{
struct iovec iov;
struct atp_block atpb;
/*
- * $Id: psorder.c,v 1.7 2009-10-13 22:55:36 didg Exp $
+ * $Id: psorder.c,v 1.8 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
* Global Variables
*/
-u_char psbuf[ 8192 ];
-struct psinfo_st psinfo;
-int orderflag, forceflag;
+static u_char psbuf[ 8192 ];
+static struct psinfo_st psinfo;
+static int orderflag, forceflag;
-void
+static void
filecleanup( int errorcode, int tfd, char *tfile)
{
exit( errorcode );
}
-void
+static void
filesetup( char *inputfile, int *infd, char *tfile, int *tfd)
{
struct stat st;
return;
}
-struct pspage_st
+static struct pspage_st
*getpspage(off_t off)
{
struct pspage_st *newpspage;
return( newpspage );
}
-int
+static int
handletok(off_t count, char *token)
{
int incdoc = 0;
return( 0 );
}
-void
+static void
readps(int inputfd, int tempfd, char *tempfile)
{
off_t ccread = 0;
return;
}
-void
+static void
temp2out(int tempfd, char *tempfile, off_t length)
{
int ccread;
}
}
-void
+static void
writelable(int tempfd, char *tempfile, char *lable)
{
char line[256];
}
}
-void
+static void
writeps(int tempfd, char *tempfile)
{
struct stat st;
return;
}
-int
+static int
psorder(char *path)
{
int tempfd;
/*
- * $Id: afp_asp.c,v 1.24 2009-10-13 22:55:36 didg Exp $
+ * $Id: afp_asp.c,v 1.25 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
#include "uid.h"
#endif /* FORCE_UIDGID */
-extern struct oforks *writtenfork;
-
static AFPObj *child;
static void afp_authprint_remove(AFPObj *);
/*
- * $Id: afp_dsi.c,v 1.38 2009-10-13 22:55:36 didg Exp $
+ * $Id: afp_dsi.c,v 1.39 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
#include "uid.h"
#endif /* FORCE_UIDGID */
-extern struct oforks *writtenfork;
-
#define CHILD_DIE (1 << 0)
#define CHILD_RUNNING (1 << 1)
#define CHILD_SLEEPING (1 << 2)
/*
- * $Id: afp_options.c,v 1.46 2009-10-13 22:55:36 didg Exp $
+ * $Id: afp_options.c,v 1.47 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* Show version information about afpd.
* Used by "afp -v".
*/
-void show_version( void )
+static void show_version( void )
{
printf( "afpd %s - Apple Filing Protocol (AFP) daemon of Netatalk\n\n", VERSION );
* Show extended version information about afpd and Netatalk.
* Used by "afp -V".
*/
-void show_version_extended(void )
+static void show_version_extended(void )
{
show_version( );
/*
* Display compiled-in default paths
*/
-void show_paths( void )
+static void show_paths( void )
{
printf( " afpd.conf:\t%s\n", _PATH_AFPDCONF );
printf( " AppleVolumes.system:\t%s\n", _PATH_AFPDSYSVOL );
/*
* Display usage information about adpd.
*/
-void show_usage( char *name )
+static void show_usage( char *name )
{
fprintf( stderr, "Usage:\t%s [-dDIptTu] [-c maxconnections] [-f defaultvolumes] [-F config]\n", name );
fprintf( stderr, "\t [-g guest] [-L message] [-m umask][-n nbpname] [-P pidfile]\n" );
/*
- * $Id: afp_util.c,v 1.6 2009-09-28 11:59:44 franklahm Exp $
+ * $Id: afp_util.c,v 1.7 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
#endif /* HAVE_CONFIG_H */
#include <atalk/afp.h>
+#include "globals.h"
const char *AfpNum2name(int num)
{
} /* catsearch() */
/* -------------------------- */
-int catsearch_afp(AFPObj *obj _U_, char *ibuf, int ibuflen,
+static int catsearch_afp(AFPObj *obj _U_, char *ibuf, int ibuflen,
char *rbuf, int *rbuflen, int ext)
{
struct vol *vol;
/*
- * $Id: desktop.c,v 1.38 2009-10-13 22:55:36 didg Exp $
+ * $Id: desktop.c,v 1.39 2009-10-14 01:38:28 didg Exp $
*
* See COPYRIGHT.
*
return( AFP_OK );
}
-struct savedt si = { { 0, 0, 0, 0 }, -1, 0, 0 };
+static struct savedt si = { { 0, 0, 0, 0 }, -1, 0, 0 };
static char *icon_dtfile(struct vol *vol, u_char creator[ 4 ])
{
/*
- * $Id: file.h,v 1.22 2009-10-13 22:55:37 didg Exp $
+ * $Id: file.h,v 1.23 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
extern int copyfile (const struct vol *, const struct vol *, char *, char *, char *, struct adouble *);
extern int deletefile (const struct vol *, char *, int);
+extern int getmetadata (struct vol *vol, u_int16_t bitmap, struct path *path,
+ struct dir *dir, char *buf, int *buflen, struct adouble *adp);
+
extern void *get_finderinfo (const struct vol *, const char *, struct adouble *, void *);
extern size_t mtoUTF8 (const struct vol *, const char *, size_t , char *, size_t );
/*
- * $Id: fork.c,v 1.63 2009-10-13 22:55:37 didg Exp $
+ * $Id: fork.c,v 1.64 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#define Debug(a) (0)
#endif
-struct ofork *writtenfork;
-extern int getmetadata(struct vol *vol,
- u_int16_t bitmap,
- struct path *path, struct dir *dir, char *buf,
- int *buflen, struct adouble *adp);
+#ifdef AFS
+struct ofork *writtenfork;
+#endif
static int getforkparams(struct ofork *ofork, u_int16_t bitmap, char *buf, int *buflen)
{
/*
- * $Id: fork.h,v 1.14 2009-10-13 22:55:37 didg Exp $
+ * $Id: fork.h,v 1.15 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#define AFPFORK_ACCWR (1<<5)
#define AFPFORK_ACCMASK (AFPFORK_ACCRD | AFPFORK_ACCWR)
+#ifdef AFS
+extern struct ofork *writtenfork;
+#endif
+
#define of_name(a) (a)->of_ad->ad_m_name
/* in ofork.c */
extern struct ofork *of_alloc (struct vol *, struct dir *,
/*
- * $Id: config.c,v 1.17 2009-10-13 22:55:37 didg Exp $
+ * $Id: config.c,v 1.18 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#define ARGV_CHUNK_SIZE 128
#define MAXLINELEN 2048
-char **parseline(const char *line)
+static char **parseline(const char *line)
{
const char *p;
int argc = 0;
return argv;
}
-void freeline( char **argv )
+static void freeline( char **argv )
{
char **tmp = argv;
/*
- * $Id: main.c,v 1.20 2009-10-13 22:55:37 didg Exp $
+ * $Id: main.c,v 1.21 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
extern int aep_packet(struct atport *ap, struct sockaddr_at *from, char *data, int len);
int rtfd;
+int transition = 0;
+int stabletimer, newrtmpdata = 0;
static struct atserv atserv[] = {
{ "rtmp", 1, rtmp_packet }, /* 0 */
struct interface *interfaces = NULL, *ciface = NULL;
-int debug = 0, quiet = 0, chatty = 0;
-char *configfile = NULL;
-int ziptimeout = 0, transition = 0;
-int stabletimer, stable = 0, newrtmpdata = 0, noparent = 0;
-static int ninterfaces;
-int defphase = IFACE_PHASE2;
-int nfds = 0;
-fd_set fds;
-char Packet[ PKTSZ ];
-char *version = VERSION;
-static char *pidfile = _PATH_ATALKDLOCK;
+static int debug = 0, quiet = 0, chatty = 0;
+static char *configfile = NULL;
+static int ziptimeout = 0;
+static int stable = 0, noparent = 0;
+static int ninterfaces;
+static int defphase = IFACE_PHASE2;
+static int nfds = 0;
+static fd_set fds;
+static char Packet[ PKTSZ ];
+static char *version = VERSION;
+static char *pidfile = _PATH_ATALKDLOCK;
/* from config.c */
}
#endif /* DEBUG */
-void
+static void
as_debug(int sig _U_)
{
struct interface *iface;
/*
* Called when SIGTERM is recieved. Remove all routes and then exit.
*/
-void
+static void
as_down(int sig _U_)
{
struct interface *iface;
/*
- * $Id: main.h,v 1.5 2009-10-13 22:55:37 didg Exp $
+ * $Id: main.h,v 1.6 2009-10-14 01:38:28 didg Exp $
*/
#ifndef ATALKD_MAIN_H
#include <sys/cdefs.h>
#include "config.h"
+extern int transition;
+extern int stabletimer, newrtmpdata;
+
int ifconfig ( const char *, unsigned long, struct sockaddr_at * );
void setaddr ( struct interface *, u_int8_t, u_int16_t,
u_int8_t, u_int16_t, u_int16_t );
/*
- * $Id: multicast.c,v 1.12 2009-10-13 22:55:37 didg Exp $
+ * $Id: multicast.c,v 1.13 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#include "rtmp.h"
#include "zip.h"
#include "main.h"
+#include "multicast.h"
static const unsigned char ethermulti[ 6 ] = {
/*
- * $Id: multicast.h,v 1.4 2009-10-13 22:55:37 didg Exp $
+ * $Id: multicast.h,v 1.5 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1997 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#include <sys/cdefs.h>
#include "zip.h"
-extern unsigned char ethermultitab[ 253 ][ 6 ];
-extern unsigned char ethermulti[ 6 ];
-
int addmulti (const char *, const unsigned char *);
int zone_bcast (struct ziptab *);
/*
- $Id: cmd_dbd.c,v 1.12 2009-10-13 22:55:37 didg Exp $
+ $Id: cmd_dbd.c,v 1.13 2009-10-14 01:38:28 didg Exp $
Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
return;
}
-void set_signal(void)
+static void set_signal(void)
{
struct sigaction sv;
}
}
-int get_lock(const char *dbpath)
+static int get_lock(const char *dbpath)
{
int lockfd;
char lockpath[PATH_MAX];
return lockfd;
}
-void free_lock(int lockfd)
+static void free_lock(int lockfd)
{
struct flock lock;
/*
- * $Id: cmd_dbd_lookup.c,v 1.2 2009-07-12 09:21:34 franklahm Exp $
+ * $Id: cmd_dbd_lookup.c,v 1.3 2009-10-14 01:38:28 didg Exp $
*
* Copyright (C) Frank Lahm 2009
* All Rights Reserved. See COPYING.
*/
-/* Pull these in from dbd_add.c */
-extern int add_cnid(DBD *dbd, struct cnid_dbd_rqst *rqst, struct cnid_dbd_rply *rply);
-extern int get_cnid(DBD *dbd, struct cnid_dbd_rply *rply);
-
/*
* This returns the CNID corresponding to a particular file and logs any inconsitencies.
* If roflags == 1 we only scan, if roflag == 0, we modify i.e. call dbd_update
/*
- $Id: cmd_dbd_scanvol.c,v 1.9 2009-10-12 11:30:52 franklahm Exp $
+ $Id: cmd_dbd_scanvol.c,v 1.10 2009-10-14 01:38:28 didg Exp $
Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
/*
Remove all CNIDs from dbd that are not in dbd_rebuild
*/
-void delete_orphaned_cnids(DBD *dbd, DBD *dbd_rebuild, dbd_flags_t flags)
+static void delete_orphaned_cnids(DBD *dbd, DBD *dbd_rebuild, dbd_flags_t flags)
{
int ret, deleted = 0;
cnid_t dbd_cnid = 0, rebuild_cnid = 0;
/*
- * $Id: cnid_metad.c,v 1.15 2009-10-13 22:55:37 didg Exp $
+ * $Id: cnid_metad.c,v 1.16 2009-10-14 01:38:28 didg Exp $
*
* Copyright (C) Joerg Lenneis 2003
* All Rights Reserved. See COPYING.
static int srvfd;
static int rqstfd;
-volatile sig_atomic_t alarmed = 0;
+static volatile sig_atomic_t alarmed = 0;
#define MAXSPAWN 3 /* Max times respawned in.. */
#define TESTTIME 42 /* this much seconds apfd client tries to *
}
/* ------------------ */
-uid_t user_to_uid (char *username)
+static uid_t user_to_uid (char *username)
{
struct passwd *this_passwd;
}
/* ------------------ */
-gid_t group_to_gid ( char *group)
+static gid_t group_to_gid ( char *group)
{
struct group *this_group;
}
/* ------------------ */
-void catch_alarm(int sig _U_) {
+static void catch_alarm(int sig _U_) {
alarmed = 1;
}
/*
- * $Id: dbd.h,v 1.5 2009-07-12 09:21:34 franklahm Exp $
+ * $Id: dbd.h,v 1.6 2009-10-14 01:38:28 didg Exp $
*
* Copyright (C) Joerg Lenneis 2003
* Copyright (C) Frank Lahm 2009
#include <atalk/cnid_dbd_private.h>
+extern int add_cnid(DBD *dbd, struct cnid_dbd_rqst *rqst, struct cnid_dbd_rply *rply);
+extern int get_cnid(DBD *dbd, struct cnid_dbd_rply *rply);
+
extern int dbd_stamp(DBD *dbd);
extern int dbd_add(DBD *dbd, struct cnid_dbd_rqst *, struct cnid_dbd_rply *);
extern int dbd_get(DBD *dbd, struct cnid_dbd_rqst *, struct cnid_dbd_rply *);
/*
- * $Id: dbif.c,v 1.15 2009-10-13 22:55:37 didg Exp $
+ * $Id: dbif.c,v 1.16 2009-10-14 01:38:28 didg Exp $
*
* Copyright (C) Joerg Lenneis 2003
* Copyright (C) Frank Lahm 2009
}
/* ------------------------ */
-int dbif_closedb(DBD *dbd)
+static int dbif_closedb(DBD *dbd)
{
int i;
int ret;
/*
- * $Id: main.c,v 1.10 2009-09-03 08:35:15 franklahm Exp $
+ * $Id: main.c,v 1.11 2009-10-14 01:38:28 didg Exp $
*
* Copyright (C) Joerg Lenneis 2003
* Copyright (c) Frank Lahm 2009
}
/* ------------------------ */
-int get_lock(void)
+static int get_lock(void)
{
int lockfd;
struct flock lock;
}
/* ----------------------- */
-void set_signal(void)
+static void set_signal(void)
{
struct sigaction sv;
}
/* ----------------------- */
-void free_lock(int lockfd)
+static void free_lock(int lockfd)
{
struct flock lock;
/*
- * $Id: lp.c,v 1.28 2009-10-13 22:55:37 didg Exp $
+ * $Id: lp.c,v 1.29 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
int lp_conn_unix();
int lp_disconn_unix( int );
-char hostname[ MAXHOSTNAMELEN ];
+static char hostname[ MAXHOSTNAMELEN ];
extern struct sockaddr_at *sat;
-struct lp {
+static struct lp {
int lp_flags;
FILE *lp_stream;
int lp_seq;
/*
- * $Id: main.c,v 1.27 2009-10-13 22:55:37 didg Exp $
+ * $Id: main.c,v 1.28 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1995 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
exit(i);
}
-void
+static void
die(int n)
{
struct printer *pr;
papd_exit( n );
}
-void
+static void
reap(int sig _U_)
{
int status;
return;
}
-char rbuf[ 255 + 1 + 8 ];
+static char rbuf[ 255 + 1 + 8 ];
int main(int ac, char **av)
{
/*
- * $Id: session.c,v 1.17 2009-10-13 22:55:37 didg Exp $
+ * $Id: session.c,v 1.18 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
extern unsigned char connid, quantum, oquantum;
-char buf[ PAP_MAXQUANTUM ][ 4 + PAP_MAXDATA ];
-struct iovec niov[ PAP_MAXQUANTUM ] = {
+static char buf[ PAP_MAXQUANTUM ][ 4 + PAP_MAXDATA ];
+static struct iovec niov[ PAP_MAXQUANTUM ] = {
{ buf[ 0 ], 0 },
{ buf[ 1 ], 0 },
{ buf[ 2 ], 0 },
{ buf[ 6 ], 0 },
{ buf[ 7 ], 0 },
};
-struct iovec iov[ PAP_MAXQUANTUM ] = {
+static struct iovec iov[ PAP_MAXQUANTUM ] = {
{ buf[ 0 ] + 4, 0 },
{ buf[ 1 ] + 4, 0 },
{ buf[ 2 ] + 4, 0 },
/*
- * $Id: psf.c,v 1.10 2009-10-13 22:55:37 didg Exp $
+ * $Id: psf.c,v 1.11 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1995 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
int copyio();
int textps();
-char psapath[] = _PATH_PSA;
-char *psaargv[] = { "psa", 0, 0, 0, 0 };
+static char psapath[] = _PATH_PSA;
+static char *psaargv[] = { "psa", 0, 0, 0, 0 };
/*
* If we're not doing accounting, we just call pap as below.
* arg 4. The second time, we call it with "-c" in arg 2, pagecount.ps
* in arg 3, and 0 in arg 4.
*/
-char pappath[] = _PATH_PAP;
-char *papargv[] = { "pap", "-sstatus", 0, 0, 0, 0, 0, 0 };
+static char pappath[] = _PATH_PAP;
+static char *papargv[] = { "pap", "-sstatus", 0, 0, 0, 0, 0, 0 };
-char revpath[] = _PATH_PSORDER;
-char *revargv[] = { "psorder", "-d", 0 };
+static char revpath[] = _PATH_PSORDER;
+static char *revargv[] = { "psorder", "-d", 0 };
-char *filtargv[] = { 0, 0, 0 };
+static char *filtargv[] = { 0, 0, 0 };
-char inbuf[ 1024 * 8 ];
-int inlen;
+static char inbuf[ 1024 * 8 ];
+static int inlen;
-FILE *acctfile = NULL;
-int literal;
-int width = 80, length = 66, indent = 0;
-char *prog, *name, *host;
+static FILE *acctfile = NULL;
+static int literal;
+static int width = 80, length = 66, indent = 0;
+static char *prog, *name, *host;
-struct papersize {
+static struct papersize {
int width;
int length;
float win;
return( 0 );
}
-char *font = "Courier";
-int point = 11;
+static char *font = "Courier";
+static int point = 11;
-char pspro[] = "\
+static char pspro[] = "\
/GSV save def % global VM\n\
/SP {\n\
/SV save def % save vmstate\n\
/*
- * $Id: uams_guest.c,v 1.15 2009-10-13 22:55:37 didg Exp $
+ * $Id: uams_guest.c,v 1.16 2009-10-14 01:38:28 didg Exp $
*
* (c) 2001 (see COPYING)
*/
/* Printer NoAuthUAM Login */
-int noauth_printer(char *start, char *stop, char *username, struct papfile *out)
+static int noauth_printer(char *start, char *stop, char *username, struct papfile *out)
{
char *data, *p, *q;
static const char *loginok = "0\r";
/*
- * $Id: uams_pam.c,v 1.19 2009-10-13 22:55:37 didg Exp $
+ * $Id: uams_pam.c,v 1.20 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
/* Printer ClearTxtUAM login */
-int pam_printer(char *start, char *stop, char *username, struct papfile *out)
+static int pam_printer(char *start, char *stop, char *username, struct papfile *out)
{
int PAM_error;
char *data, *p, *q;
/*
- * $Id: adouble.h,v 1.44 2009-10-13 22:55:37 didg Exp $
+ * $Id: adouble.h,v 1.45 2009-10-14 01:38:28 didg Exp $
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
*
}
/* ad_read.c/ad_write.c */
+extern int sys_ftruncate(int fd, off_t length);
extern ssize_t ad_read (struct adouble *, const u_int32_t,
const off_t, char *, const size_t);
extern ssize_t ad_pread (struct ad_fd *, void *, size_t, off_t);
extern int strupper_w (ucs2_t *);
extern int strlower_w (ucs2_t *);
extern int islower_w (ucs2_t);
-extern int islower_w (ucs2_t);
+extern int isupper_w (ucs2_t);
extern size_t strlen_w (const ucs2_t *);
extern size_t strnlen_w (const ucs2_t *, size_t);
extern ucs2_t* strchr_w (const ucs2_t *, ucs2_t);
+extern ucs2_t *strcasechr_w (const ucs2_t *s, ucs2_t c);
extern int strcmp_w (const ucs2_t *, const ucs2_t *);
extern int strncmp_w (const ucs2_t *, const ucs2_t *, size_t);
extern int strcasecmp_w (const ucs2_t *, const ucs2_t *);
extern int strncasecmp_w (const ucs2_t *, const ucs2_t *, size_t);
+extern ucs2_t *strstr_w (const ucs2_t *s, const ucs2_t *ins);
extern ucs2_t *strcasestr_w (const ucs2_t *, const ucs2_t *);
extern ucs2_t *strndup_w (const ucs2_t *, size_t);
extern ucs2_t *strdup_w (const ucs2_t *);
/*
- * $Id: atp_rsel.c,v 1.5 2009-10-13 22:55:37 didg Exp $
+ * $Id: atp_rsel.c,v 1.6 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1990,1997 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#endif /* DROP_ATPTREL */
-int
+static int
resend_request(ATP ah)
{
/*
/*
- * $Id: cnid_cdb_add.c,v 1.4 2008-12-03 18:35:44 didg Exp $
+ * $Id: cnid_cdb_add.c,v 1.5 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1999. Adrian Sun (asun@zoology.washington.edu)
* All Rights Reserved. See COPYRIGHT.
}
/* --------------- */
-int db_stamp(void *buffer, size_t size)
+static int db_stamp(void *buffer, size_t size)
{
time_t t;
memset(buffer, 0, size);
/*
- * $Id: dsi_stream.c,v 1.12 2005-04-28 20:50:02 bfernhomberg Exp $
+ * $Id: dsi_stream.c,v 1.13 2009-10-14 01:38:28 didg Exp $
*
* Copyright (c) 1998 Adrian Sun (asun@zoology.washington.edu)
* All rights reserved. See COPYRIGHT.
/* -------------------------
* we don't use a circular buffer.
*/
-void dsi_buffer(DSI *dsi)
+static void dsi_buffer(DSI *dsi)
{
fd_set readfds, writefds;
int len;
return tdb_unlock(tdb, BUCKET(tdb_hash(&key)), F_WRLCK);
}
-int tdb_chainlock_read(TDB_CONTEXT *tdb, TDB_DATA key)
+static int tdb_chainlock_read(TDB_CONTEXT *tdb, TDB_DATA key)
{
return tdb_lock(tdb, BUCKET(tdb_hash(&key)), F_RDLCK);
}
-int tdb_chainunlock_read(TDB_CONTEXT *tdb, TDB_DATA key)
+static int tdb_chainunlock_read(TDB_CONTEXT *tdb, TDB_DATA key)
{
return tdb_unlock(tdb, BUCKET(tdb_hash(&key)), F_RDLCK);
}
return ret;
}
-struct charset_functions* get_charset_functions (charset_t ch)
+static struct charset_functions* get_charset_functions (charset_t ch)
{
if (charsets[ch] != NULL)
return charsets[ch];
}
-void lazy_initialize_conv(void)
+static void lazy_initialize_conv(void)
{
static int initialized = 0;
return 0;
}
-void lazy_initialize_iconv(void)
+static void lazy_initialize_iconv(void)
{
static int initialized = 0;
int i;
/* ------------------------ */
-ucs2_t do_precomposition(unsigned int base, unsigned int comb)
+static ucs2_t do_precomposition(unsigned int base, unsigned int comb)
{
int min = 0;
int max = sizeof(precompositions) / sizeof(precompositions[0]) - 1;
}
/* -------------------------- */
-u_int32_t do_decomposition(ucs2_t base)
+static u_int32_t do_decomposition(ucs2_t base)
{
int min = 0;
int max = sizeof(decompositions) / sizeof(decompositions[0]) - 1;
/*
- $Id: locking.c,v 1.1 2009-10-02 09:32:41 franklahm Exp $
+ $Id: locking.c,v 1.2 2009-10-14 01:38:29 didg Exp $
Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
This program is free software; you can redistribute it and/or modify
#include <unistd.h>
#include <fcntl.h>
+#include <atalk/util.h>
/*
* Function: lock_reg
strncat(ptr, "): ", len);
}
-int get_syslog_equivalent(enum loglevels loglevel)
+static int get_syslog_equivalent(enum loglevels loglevel)
{
switch (loglevel)
{
/*
- * $Id: server_ipc.c,v 1.2 2005-04-28 20:50:05 bfernhomberg Exp $
+ * $Id: server_ipc.c,v 1.3 2009-10-14 01:38:29 didg Exp $
*
* All rights reserved. See COPYRIGHT.
*
}
/* ----------------- */
-int ipc_kill_token (struct ipc_header *ipc, server_child *children)
+static int ipc_kill_token (struct ipc_header *ipc, server_child *children)
{
pid_t pid;
}
/* ----------------- */
-int ipc_get_session (struct ipc_header *ipc, server_child *children)
+static int ipc_get_session (struct ipc_header *ipc, server_child *children)
{
u_int32_t boottime;
u_int32_t idlen;
}
/* ----------------- */
-int RF_renamedir_adouble(const struct vol *vol _U_, const char *oldpath _U_, const char *newpath _U_)
+static int RF_renamedir_adouble(const struct vol *vol _U_, const char *oldpath _U_, const char *newpath _U_)
{
return 0;
}
}
/* ----------------- */
-int RF_renamefile_adouble(const struct vol *vol, const char *src, const char *dst)
+static int RF_renamefile_adouble(const struct vol *vol, const char *src, const char *dst)
{
char adsrc[ MAXPATHLEN + 1];
int err = 0;
}
/* --------------------------- */
-int RF_renamefile_ads(const struct vol *vol, const char *src, const char *dst)
+static int RF_renamefile_ads(const struct vol *vol, const char *src, const char *dst)
{
char adsrc[ MAXPATHLEN + 1];
int err = 0;
}
/* ---------------- */
-int RF_renamedir_osx(const struct vol *vol, const char *oldpath, const char *newpath)
+static int RF_renamedir_osx(const struct vol *vol, const char *oldpath, const char *newpath)
{
/* We simply move the corresponding ad file as well */
char tempbuf[258]="._";
}
/* ---------------- */
-int RF_deletecurdir_osx(const struct vol *vol)
+static int RF_deletecurdir_osx(const struct vol *vol)
{
return netatalk_unlink( vol->vfs->ad_path(".",0) );
}
}
/* ---------------- */
-int RF_renamefile_osx(const struct vol *vol, const char *src, const char *dst)
+static int RF_renamefile_osx(const struct vol *vol, const char *src, const char *dst)
{
char adsrc[ MAXPATHLEN + 1];
int err = 0;
return 0;
}
-struct vfs_ops netatalk_adouble = {
+static struct vfs_ops netatalk_adouble = {
/* ad_path: */ ad_path,
/* validupath: */ validupath_adouble,
/* rf_chown: */ RF_chown_adouble,
#endif
};
-struct vfs_ops netatalk_adouble_osx = {
+static struct vfs_ops netatalk_adouble_osx = {
/* ad_path: */ ad_path_osx,
/* validupath: */ validupath_osx,
/* rf_chown: */ RF_chown_adouble,
};
/* samba sfm format. ad_path shouldn't be set her */
-struct vfs_ops netatalk_adouble_sfm = {
+static struct vfs_ops netatalk_adouble_sfm = {
/* ad_path: */ ad_path_sfm,
/* validupath: */ validupath_adouble,
/* rf_chown: */ RF_chown_ads,