Преглед изворни кода

* Some padding fixes

svn: 1287
Bryan Drewery пре 22 година
родитељ
комит
673992b714
2 измењених фајлова са 6 додато и 6 уклоњено
  1. 2 2
      src/conf.h
  2. 4 4
      src/net.h

+ 2 - 2
src/conf.h

@@ -30,8 +30,6 @@ typedef struct conf_b {
   int pscloak;          /* should the bots bother trying to cloak `ps`? */
   int autocron;         /* should the bot auto crontab itself? */
   int watcher;		/* spawn a watcher pid to block ptrace? */
-  port_t portmin;       /* for hubs, the reserved port range for incoming connections */
-  port_t portmax;       /* for hubs, the reserved port range for incoming connections */
   char *comments;       /* we dont want to lose our comments now do we?! */
   char *localhub;	/* my localhub */
   char *uname;
@@ -39,6 +37,8 @@ typedef struct conf_b {
   char *homedir;        /* homedir */
   char *binpath;        /* path to binary, ie: ~/ */
   char *binname;        /* binary name, ie: .sshrc */
+  port_t portmin;       /* for hubs, the reserved port range for incoming connections */
+  port_t portmax;       /* for hubs, the reserved port range for incoming connections */
 } conf_t;
 
 extern conf_t		conf, conffile;

+ 4 - 4
src/net.h

@@ -105,18 +105,18 @@ typedef struct {
   int encstatus;                        /* encrypted botlink */
   int oseed;                            /* botlink out seed */
   int iseed;                            /* botlink in seed */
-  int            sock;
+  int sock;
   int gz; /* gzip compression */
 #ifdef HAVE_SSL
   SSL           *ssl;
 #endif /* HAVE_SSL */
+  char *inbuf;
+  char *outbuf;
+  char *host;
   port_t port;
   short          flags;
   char okey[33];                        /* botlink enckey: out */
   char ikey[33];                        /* botlink enckey: in  */
-  char          *inbuf;
-  char          *outbuf;
-  char *host;
 } sock_list;