Remove "pipe_handle_offset" -- pipes now use "struct files_struct"
authorVolker Lendecke <vl@samba.org>
Sat, 25 Oct 2008 10:09:58 +0000 (12:09 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 25 Oct 2008 10:09:58 +0000 (12:09 +0200)
source3/include/proto.h
source3/rpc_server/srv_pipe_hnd.c
source3/smbd/files.c

index 83cd740a788d1004997055ef4fe4ab2e4d5c0f63..d04968ed8a43d00f2f730adf2f5d713858a79271 100644 (file)
@@ -7110,7 +7110,6 @@ bool api_pipe_request(pipes_struct *p);
 
 pipes_struct *get_first_internal_pipe(void);
 pipes_struct *get_next_internal_pipe(pipes_struct *p);
-void set_pipe_handle_offset(int max_open_files);
 void init_rpc_pipe_hnd(void);
 
 bool fsp_is_np(struct files_struct *fsp);
index c8037e6e4321a524340d23477457b8575e9527ca..aaa355790d49f7d89f6aac48ae9986e950e2ce69 100644 (file)
@@ -55,22 +55,6 @@ pipes_struct *get_next_internal_pipe(pipes_struct *p)
        return p->next;
 }
 
-/* this must be larger than the sum of the open files and directories */
-static int pipe_handle_offset;
-
-/****************************************************************************
- Set the pipe_handle_offset. Called from smbd/files.c
-****************************************************************************/
-
-void set_pipe_handle_offset(int max_open_files)
-{
-       if(max_open_files < 0x7000) {
-               pipe_handle_offset = 0x7000;
-       } else {
-               pipe_handle_offset = max_open_files + 10; /* For safety. :-) */
-       }
-}
-
 /****************************************************************************
  Initialise pipe handle states.
 ****************************************************************************/
index 4a27d02cfec2891b1af1b3ff75ff86d4a300e3cf..d3bfce749905d40f55aec47ee50cc59516162c8a 100644 (file)
@@ -200,11 +200,6 @@ open files, %d are available.\n", request_max_open_files, real_max_open_files));
        if (!file_bmap) {
                exit_server("out of memory in file_init");
        }
-       
-       /*
-        * Ensure that pipe_handle_oppset is set correctly.
-        */
-       set_pipe_handle_offset(real_max_open_files);
 }
 
 /****************************************************************************