[BACK]Return to rumpclient.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / librumpclient

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/librumpclient/rumpclient.c between version 1.20 and 1.21

version 1.20, 2011/01/27 18:04:05 version 1.21, 2011/01/28 19:21:28
Line 307  handshake_req(struct spclient *spc, uint
Line 307  handshake_req(struct spclient *spc, uint
         struct rsp_hdr rhdr;          struct rsp_hdr rhdr;
         struct respwait rw;          struct respwait rw;
         sigset_t omask;          sigset_t omask;
           size_t bonus;
         int rv;          int rv;
   
           if (auth) {
                   bonus = sizeof(rf);
           } else {
                   bonus = strlen(getprogname())+1;
           }
   
         /* performs server handshake */          /* performs server handshake */
         rhdr.rsp_len = sizeof(rhdr) + (auth ? sizeof(rf) : 0);          rhdr.rsp_len = sizeof(rhdr) + bonus;
         rhdr.rsp_class = RUMPSP_REQ;          rhdr.rsp_class = RUMPSP_REQ;
         rhdr.rsp_type = RUMPSP_HANDSHAKE;          rhdr.rsp_type = RUMPSP_HANDSHAKE;
         if (auth)          if (auth)
Line 328  handshake_req(struct spclient *spc, uint
Line 335  handshake_req(struct spclient *spc, uint
                 memcpy(rf.rf_auth, auth, AUTHLEN*sizeof(*auth));                  memcpy(rf.rf_auth, auth, AUTHLEN*sizeof(*auth));
                 rf.rf_cancel = cancel;                  rf.rf_cancel = cancel;
                 rv = send_with_recon(spc, &rf, sizeof(rf));                  rv = send_with_recon(spc, &rf, sizeof(rf));
           } else {
                   rv = dosend(spc, getprogname(), strlen(getprogname())+1);
         }          }
         if (rv || cancel) {          if (rv || cancel) {
                 if (haslock)                  if (haslock)

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

CVSweb <webmaster@jp.NetBSD.org>