[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.47 and 1.47.2.1

version 1.47, 2011/12/12 16:53:53 version 1.47.2.1, 2012/04/23 16:49:03
Line 588  static int
Line 588  static int
 dupgood(int myfd, int mustchange)  dupgood(int myfd, int mustchange)
 {  {
         int ofds[4];          int ofds[4];
         int i;  
         int sverrno;          int sverrno;
           unsigned int i;
   
         for (i = 0; (myfd <= 2 || mustchange) && myfd != -1; i++) {          for (i = 0; (myfd <= 2 || mustchange) && myfd != -1; i++) {
                 assert(i < __arraycount(ofds));                  assert(i < __arraycount(ofds));
Line 605  dupgood(int myfd, int mustchange)
Line 605  dupgood(int myfd, int mustchange)
         if (myfd == -1 && i > 0)          if (myfd == -1 && i > 0)
                 sverrno = errno;                  sverrno = errno;
   
         for (i--; i >= 0; i--) {          while (i-- > 0) {
                 host_close(ofds[i]);                  host_close(ofds[i]);
         }          }
   
Line 740  rumpclient__dlsym(void *handle, const ch
Line 740  rumpclient__dlsym(void *handle, const ch
   
         return dlsym(handle, symbol);          return dlsym(handle, symbol);
 }  }
 __weak_alias(rumphijack_dlsym,rumpclient__dlsym);  __weak_alias(rumphijack_dlsym,rumpclient__dlsym)
   
 static pid_t init_done = 0;  static pid_t init_done = 0;
   

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.47.2.1

CVSweb <webmaster@jp.NetBSD.org>