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.
This commit is contained in:
proski 2008-04-04 06:45:07 +00:00
parent 26887f221a
commit 070e49e4e8
4 changed files with 17 additions and 6 deletions

View file

@ -1,3 +1,13 @@
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> 2008-04-02 Pavel Roskin <proski@gnu.org>
* genkernsyms.sh.in: Use more robust assignments for CC and * genkernsyms.sh.in: Use more robust assignments for CC and

View file

@ -57,7 +57,7 @@ grub_ieee1275_find_options (void)
grub_ieee1275_phandle_t openprom; grub_ieee1275_phandle_t openprom;
grub_ieee1275_phandle_t bootrom; grub_ieee1275_phandle_t bootrom;
int rc; int rc;
int realmode = 0; grub_uint32_t realmode = 0;
char tmp[32]; char tmp[32];
int is_smartfirmware = 0; int is_smartfirmware = 0;
int is_olpc = 0; int is_olpc = 0;

View file

@ -153,9 +153,9 @@ grub_err_t grub_available_iterate (int (*hook) (grub_uint64_t, grub_uint64_t))
grub_ieee1275_phandle_t memory; grub_ieee1275_phandle_t memory;
grub_uint32_t available[32]; grub_uint32_t available[32];
grub_ssize_t available_size; grub_ssize_t available_size;
int address_cells = 1; grub_uint32_t address_cells = 1;
int size_cells = 1; grub_uint32_t size_cells = 1;
unsigned int i; int i;
/* Determine the format of each entry in `available'. */ /* Determine the format of each entry in `available'. */
grub_ieee1275_finddevice ("/", &root); grub_ieee1275_finddevice ("/", &root);

View file

@ -17,16 +17,17 @@
* along with GRUB. If not, see <http://www.gnu.org/licenses/>. * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <config.h>
#include <stdio.h> #include <stdio.h>
#include <grub/util/misc.h> #include <grub/util/misc.h>
char * char *
grub_util_get_disk_name (int disk, char *name) grub_util_get_disk_name (int disk __attribute__ ((unused)), char *name)
{ {
int p[2]; int p[2];
char *line = NULL; char *line = NULL;
int zero = 0; size_t zero = 0;
int len; int len;
pipe (p); pipe (p);