[BACK]Return to xprintf.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / libexec / ld.elf_so

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

Diff for /src/libexec/ld.elf_so/xprintf.c between version 1.20 and 1.21

version 1.20, 2009/05/19 20:44:52 version 1.21, 2010/12/16 22:52:32
Line 243  xsnprintf(char *buf, size_t buflen, cons
Line 243  xsnprintf(char *buf, size_t buflen, cons
         va_end(ap);          va_end(ap);
 }  }
   
   #include "errlist_concat.h"
   
 const char *  const char *
 xstrerror(int error)  xstrerror(int error)
 {  {
   
         if (error >= sys_nerr || error < 0) {          if (error >= concat_nerr || error < 0) {
                 static char buf[128];                  static char buf[128];
                 xsnprintf(buf, sizeof(buf), "Unknown error: %d", error);                  xsnprintf(buf, sizeof(buf), "Unknown error: %d", error);
                 return buf;                  return buf;
         }          }
         return sys_errlist[error];          return concat_errlist + concat_offset[error];
 }  }
   
 void  void

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

CVSweb <webmaster@jp.NetBSD.org>