summaryrefslogtreecommitdiff
path: root/sysutils/fam/patches/patch-at
blob: b5181fda59f4190de0423fe4339b53394781015c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-at,v 1.4 2004/11/19 12:35:22 sketch Exp $

--- src/NetConnection.h.orig	2004-11-08 14:44:19.318981000 +0000
+++ src/NetConnection.h	2004-11-08 14:44:42.403907000 +0000
@@ -68,6 +68,8 @@
     void ready_for_input(bool);
     int get_fd() const { return fd; }
 
+    enum { MAXMSGSIZE = PATH_MAX + 40 };
+
 protected:
 
     virtual bool input_msg(const char *data, unsigned nbytes) = 0;
@@ -75,7 +77,6 @@
 
 private:
 
-    enum { MAXMSGSIZE = PATH_MAX + 40 };
     typedef u_int32_t Length;
     typedef struct msgList_s {
         char msg[MAXMSGSIZE+5];  //  + 4 for 32-bit length, + 1 for overflow