/[baselayout]/trunk/src/librc-depend.c
Gentoo

Diff of /trunk/src/librc-depend.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2549 Revision 2550
628 Ideally we should be setting our full env instead */ 628 Ideally we should be setting our full env instead */
629 if (! getenv ("RC_LIBDIR")) 629 if (! getenv ("RC_LIBDIR"))
630 setenv ("RC_LIBDIR", RC_LIBDIR, 0); 630 setenv ("RC_LIBDIR", RC_LIBDIR, 0);
631 631
632 /* Phase 1 */ 632 /* Phase 1 */
633 if ((fp = popen (GENDEP, "r")) == NULL) 633 if (! (fp = popen (GENDEP, "r")))
634 eerrorx ("popen: %s", strerror (errno)); 634 eerrorx ("popen: %s", strerror (errno));
635 635
636 deptree = rc_xmalloc (sizeof (rc_depinfo_t)); 636 deptree = rc_xmalloc (sizeof (rc_depinfo_t));
637 memset (deptree, 0, sizeof (rc_depinfo_t)); 637 memset (deptree, 0, sizeof (rc_depinfo_t));
638 memset (buffer, 0, RC_LINEBUFFER); 638 memset (buffer, 0, RC_LINEBUFFER);
807 Now that we're purely in C, do we need to keep a shell parseable file? 807 Now that we're purely in C, do we need to keep a shell parseable file?
808 I think yes as then it stays human readable 808 I think yes as then it stays human readable
809 This works and should be entirely shell parseable provided that depend 809 This works and should be entirely shell parseable provided that depend
810 names don't have any non shell variable characters in 810 names don't have any non shell variable characters in
811 */ 811 */
812 if ((fp = fopen (RC_DEPTREE, "w")) == NULL) 812 if (! (fp = fopen (RC_DEPTREE, "w")))
813 eerror ("fopen `%s': %s", RC_DEPTREE, strerror (errno)); 813 eerror ("fopen `%s': %s", RC_DEPTREE, strerror (errno));
814 else 814 else
815 { 815 {
816 i = 0; 816 i = 0;
817 for (depinfo = deptree; depinfo; depinfo = depinfo->next) 817 for (depinfo = deptree; depinfo; depinfo = depinfo->next)

Legend:
Removed from v.2549  
changed lines
  Added in v.2550

  ViewVC Help
Powered by ViewVC 1.1.20