[BACK]Return to lpkg.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_install / files / lib

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

Diff for /pkgsrc/pkgtools/pkg_install/files/lib/lpkg.c between version 1.5 and 1.6

version 1.5, 2003/09/23 07:13:53 version 1.6, 2009/02/02 12:35:01
Line 46  alloc_lpkg(const char *pkgname)
Line 46  alloc_lpkg(const char *pkgname)
 {  {
         lpkg_t *lpp;          lpkg_t *lpp;
   
         if ((lpp = malloc(sizeof(*lpp))) == 0)          lpp = xmalloc(sizeof(*lpp));
                 err(EXIT_FAILURE, "cannot allocate recursion data");          lpp->lp_name = xstrdup(pkgname);
         if ((lpp->lp_name = strdup(pkgname)) == 0)  
                 err(EXIT_FAILURE, "cannot allocate recursion data");  
         return (lpp);          return (lpp);
 }  }
   

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>