s3: Remove unused cli_send_keepalive
authorVolker Lendecke <vl@samba.org>
Sun, 16 Jan 2011 18:11:45 +0000 (19:11 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 17 Jan 2011 07:03:42 +0000 (08:03 +0100)
source3/include/proto.h
source3/libsmb/clientgen.c

index 0db8d59335208d1714abe1e508b739f2eb28ab8c..6a11ce4bb0626388f754d61747dc89317c31dd69 100644 (file)
@@ -1746,7 +1746,6 @@ void cli_shutdown(struct cli_state *cli);
 void cli_sockopt(struct cli_state *cli, const char *options);
 uint16 cli_setpid(struct cli_state *cli, uint16 pid);
 bool cli_set_case_sensitive(struct cli_state *cli, bool case_sensitive);
-bool cli_send_keepalive(struct cli_state *cli);
 struct tevent_req *cli_echo_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
                                 struct cli_state *cli, uint16_t num_echos,
                                 DATA_BLOB data);
index 2c49a8b3f0e8771751a4aef16fc9d387d57139a6..3fb1c7fc7f6b30297e61dae623787df0e1d89ba6 100644 (file)
@@ -766,25 +766,6 @@ bool cli_set_case_sensitive(struct cli_state *cli, bool case_sensitive)
        return ret;
 }
 
-/****************************************************************************
-Send a keepalive packet to the server
-****************************************************************************/
-
-bool cli_send_keepalive(struct cli_state *cli)
-{
-        if (cli->fd == -1) {
-                DEBUG(3, ("cli_send_keepalive: fd == -1\n"));
-                return false;
-        }
-        if (!send_keepalive(cli->fd)) {
-                close(cli->fd);
-                cli->fd = -1;
-                DEBUG(0,("Error sending keepalive packet to client.\n"));
-                return false;
-        }
-        return true;
-}
-
 struct cli_echo_state {
        uint16_t vwv[1];
        DATA_BLOB data;