]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/globals.h
BIG commit to improve code style using astyle as well as fix up CNID DB
[netatalk.git] / etc / afpd / globals.h
index e254547ccff03b49d51e2c60331a001162cf2414..70fffde40c5c70cb504bc6656b548b6e12fa39d4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: globals.h,v 1.6 2001-10-23 13:44:37 rufustfirefly Exp $
+ * $Id: globals.h,v 1.7 2001-12-03 05:03:38 jmarcus Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
 /* a couple of these options could get stuck in unions to save
  * space. */
 struct afp_options {
-  int connections, port, transports, tickleval, flags;
-  unsigned char passwdbits, passwdminlen, loginmaxfail;
-  u_int32_t server_quantum;
-  char hostname[MAXHOSTNAMELEN + 1], *server, *ipaddr, *configfile;
-  struct at_addr ddpaddr;
-  char *uampath, *nlspath, *fqdn;
-  char *pidfile, *defaultvol, *systemvol;
-  char *guest, *loginmesg, *keyfile, *passwdfile;
-  char *uamlist;
-  char *authprintdir;
-  mode_t umask;
+    int connections, port, transports, tickleval, flags;
+    unsigned char passwdbits, passwdminlen, loginmaxfail;
+    u_int32_t server_quantum;
+    char hostname[MAXHOSTNAMELEN + 1], *server, *ipaddr, *configfile;
+    struct at_addr ddpaddr;
+    char *uampath, *nlspath, *fqdn;
+    char *pidfile, *defaultvol, *systemvol;
+    char *guest, *loginmesg, *keyfile, *passwdfile;
+    char *uamlist;
+    char *authprintdir;
+    mode_t umask;
 #ifdef ADMIN_GRP
-  gid_t admingid;
+    gid_t admingid;
 #endif /* ADMIN_GRP */
 };
 
 #define AFPOBJ_TMPSIZ (MAXPATHLEN)
 typedef struct AFPObj {
-  int proto;
-  unsigned long servernum;
-  void *handle, *config;
-  struct afp_options options;
-  char *Obj, *Type, *Zone;
-  char username[MACFILELEN + 1];
-  void (*logout)(void), (*exit)(int);
-  int (*reply)(void *, int);
-  int (*attention)(void *, AFPUserBytes);
-  /* to prevent confusion, only use these in afp_* calls */
-  char oldtmp[AFPOBJ_TMPSIZ + 1], newtmp[AFPOBJ_TMPSIZ + 1];
-  void *uam_cookie; /* cookie for uams */
+    int proto;
+    unsigned long servernum;
+    void *handle, *config;
+    struct afp_options options;
+    char *Obj, *Type, *Zone;
+    char username[MACFILELEN + 1];
+    void (*logout)(void), (*exit)(int);
+    int (*reply)(void *, int);
+    int (*attention)(void *, AFPUserBytes);
+    /* to prevent confusion, only use these in afp_* calls */
+    char oldtmp[AFPOBJ_TMPSIZ + 1], newtmp[AFPOBJ_TMPSIZ + 1];
+    void *uam_cookie; /* cookie for uams */
 } AFPObj;
 
 extern int             afp_version;
@@ -81,8 +81,8 @@ extern char           getwdbuf[];
 extern void afp_options_init __P((struct afp_options *));
 extern int afp_options_parse __P((int, char **, struct afp_options *));
 extern int afp_options_parseline __P((char *, struct afp_options *));
-extern void afp_options_free __P((struct afp_options *, 
-                                 const struct afp_options *));
+extern void afp_options_free __P((struct afp_options *,
+                                      const struct afp_options *));
 extern void setmessage __P((const char *));
 extern void readmessage __P((void));