~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to util/ieee1275/get_disk_name.c

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2008-05-27 11:32:41 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20080527113241-033nau9g4yfsr5ps
Tags: 1.96+20080512-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Adjust debian/default/grub for default Ubuntu boot options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
18
18
 */
19
19
 
 
20
#include <config.h>
20
21
#include <stdio.h>
21
22
#include <grub/util/misc.h>
22
23
 
23
24
char *
24
 
grub_util_get_disk_name (int disk, char *name)
 
25
grub_util_get_disk_name (int disk __attribute__ ((unused)), char *name)
25
26
{
26
27
  int p[2];
27
28
 
28
29
  char *line = NULL;
29
 
  int zero = 0;
 
30
  size_t zero = 0;
30
31
  int len;
31
32
 
32
33
  pipe (p);