/[grub]/grub2/disk/powerpc/ieee1275/ofdisk.c
ViewVC logotype

Diff of /grub2/disk/powerpc/ieee1275/ofdisk.c

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

revision 1.6 by marco_g, Mon Dec 27 13:46:20 2004 UTC revision 1.7 by hollisb, Sat Jan 22 16:03:15 2005 UTC
# Line 50  grub_ofdisk_open (const char *name, grub Line 50  grub_ofdisk_open (const char *name, grub
50  {  {
51    grub_ieee1275_phandle_t dev;    grub_ieee1275_phandle_t dev;
52    grub_ieee1275_ihandle_t dev_ihandle = 0;    grub_ieee1275_ihandle_t dev_ihandle = 0;
53    char *devpath = 0;    char *devpath;
54    /* XXX: This should be large enough for any possible case.  */    /* XXX: This should be large enough for any possible case.  */
55    char prop[64];    char prop[64];
56    int actual;    int actual;
57    
58    devpath = grub_strndup (name, grub_strlen (devpath) + 2);    devpath = grub_strndup (name, grub_strlen (name) + 2);
59    if (! devpath)    if (! devpath)
60      return grub_errno;      return grub_errno;
61    

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

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26