+2008-04-04 Pavel Roskin <proski@gnu.org>
+
+ * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
+ Fix signedness warnings.
+ * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
+ Likewise.
+ * util/ieee1275/get_disk_name.c: Include config.h so that
+ _GNU_SOURCE is defined and getline() is declared. Mark an
+ unused argument as such. Fix a signedness warning.
+
2008-04-02 Pavel Roskin <proski@gnu.org>
* genkernsyms.sh.in: Use more robust assignments for CC and
grub_ieee1275_phandle_t openprom;
grub_ieee1275_phandle_t bootrom;
int rc;
- int realmode = 0;
+ grub_uint32_t realmode = 0;
char tmp[32];
int is_smartfirmware = 0;
int is_olpc = 0;
grub_ieee1275_phandle_t memory;
grub_uint32_t available[32];
grub_ssize_t available_size;
- int address_cells = 1;
- int size_cells = 1;
- unsigned int i;
+ grub_uint32_t address_cells = 1;
+ grub_uint32_t size_cells = 1;
+ int i;
/* Determine the format of each entry in `available'. */
grub_ieee1275_finddevice ("/", &root);
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <config.h>
#include <stdio.h>
#include <grub/util/misc.h>
char *
-grub_util_get_disk_name (int disk, char *name)
+grub_util_get_disk_name (int disk __attribute__ ((unused)), char *name)
{
int p[2];
char *line = NULL;
- int zero = 0;
+ size_t zero = 0;
int len;
pipe (p);