Re: [PATCH] Add missing libraries to fix link errors

2015-12-29 Thread Samuel Thibault
Applied, thanks!

[PATCH] Add missing libraries to fix link errors

2015-12-29 Thread Flavio Cruz
This fixes several linking problems I had in my recent cross-compilation of the Hurd. I added missing static libraries and also organized some of the targets for more concise rules. * console-client/Makefile: Add libiohelp.a and libihash.a. * daemons/Makefile: Add libihash.a and libshouldbeinlibc.

Re: [PATCH] fix compiler warnings in hurd/nfs and hurd/nfsd

2015-12-29 Thread Flavio Cruz
On Tue, Dec 29, 2015 at 11:17:12PM +0100, Samuel Thibault wrote: > Flavio Cruz, on Tue 29 Dec 2015 23:10:44 +0100, wrote: > > --- > > Oops, no: I meant the *comment* after the ---, the changelog has to go > before the ---, that's where git am picks it up. > > > @@ -72,7 +72,7 @@ init_filesystems

Re: [PATCH] fix compiler warnings in hurd/utils

2015-12-29 Thread Samuel Thibault
Flavio Cruz, on Tue 29 Dec 2015 23:15:01 +0100, wrote: > @@ -414,7 +414,7 @@ cmd_umask (pid_t pid, mach_port_t msgport, int argc, char > *argv[]) > } >else > { > - err = msg_get_init_int (msgport, task, INIT_UMASK, &umask); > + err = msg_get_init_int (msgport, task, INIT_UM

Re: [PATCH] fix compiler warnings in hurd/trans

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/startup

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/random

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] Include missing header file in hurd/proc

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/procfs

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/nfs and hurd/nfsd

2015-12-29 Thread Samuel Thibault
Flavio Cruz, on Tue 29 Dec 2015 23:10:44 +0100, wrote: > --- Oops, no: I meant the *comment* after the ---, the changelog has to go before the ---, that's where git am picks it up. > @@ -72,7 +72,7 @@ init_filesystems (void) > >for (line = 1; ; line++) > { > - nitems = fscanf (ind

[PATCH] fix compiler warnings in hurd/utils

2015-12-29 Thread Flavio Cruz
--- utils: Fix compiler warnings. * utils/msgport.c (cmd_umask): Cast umask to int *. * utils/rpcscan.c (setup_extract_target): Remove name variable. * utils/rpcscan.c (setup_extract_target): Fix bad initializer. * utils/rpctrace.c (new_send_wrapper, wrap_all_threads, wrap_new_thread, wrap_new_ta

[PATCH] fix compiler warnings in hurd/trans

2015-12-29 Thread Flavio Cruz
--- trans: Fix compiler warnings. * trans/mtab.c (mtab_mark_as_seen): Cast idport to hurd_ihash_value_t. * trans/streamio.c (dev_open): Cast name to char *. diff --git a/trans/mtab.c b/trans/mtab.c index a9928b3..6d580cd 100644 --- a/trans/mtab.c +++ b/trans/mtab.c @@ -330,7 +330,7 @@ mtab_mark_

Re: [PATCH] fix compiler warnings in hurd/libstore

2015-12-29 Thread Samuel Thibault
Applied, thanks!

[PATCH] fix compiler warnings in hurd/startup

2015-12-29 Thread Flavio Cruz
--- startup: Fix compiler warning. * startup/startup.c (do_mach_notify_dead_name): Fix format string. diff --git a/startup/startup.c b/startup/startup.c index e916768..9c45f4b 100644 --- a/startup/startup.c +++ b/startup/startup.c @@ -1329,7 +1329,7 @@ do_mach_notify_dead_name (mach_port_t notif

[PATCH] fix compiler warnings in hurd/random

2015-12-29 Thread Flavio Cruz
--- random: Fix compiler warnings. * random/gnupg-random.c: Use byte instead of char. * random/gnupg-rmd.h (rmd160_mixblock): Use byte instead of char. * random/gnupg-rmd.c (rmd160_mixblock): Likewise. * random/gnupg-rmd.c: Place #ifdef __HURD__ earlier to avoid warnings. diff --git a/random/gnu

Re: [PATCH] drop the deprecated malloc/free hooks in hurd/mach-defpager

2015-12-29 Thread Samuel Thibault
Applied, thanks!

[PATCH] Include missing header file in hurd/proc

2015-12-29 Thread Flavio Cruz
--- proc: Add missing header file. * proc/mgt: Include missing header file mach/task_notify.h. diff --git a/proc/mgt.c b/proc/mgt.c index ff1ca48..dacce46 100644 --- a/proc/mgt.c +++ b/proc/mgt.c @@ -21,6 +21,7 @@ /* Written by Michael I. Bushnell. */ #include +#include #include #inclu

[PATCH] fix compiler warnings in hurd/nfs and hurd/nfsd

2015-12-29 Thread Flavio Cruz
--- nfs: Fix compiler warnings. * nfs/ops.c (netfs_get_dirents): Initialize buf. * nfsd/nfsd.h: Define cache_handle_array union. * nfsd/cache.c: Use new cache_handle_array union. * nfds/ops.c: Likewise. diff --git a/nfs/ops.c b/nfs/ops.c index a4d6ac7..79cd3a6 100644 --- a/nfs/ops.c +++ b/nfs/op

[PATCH] fix compiler warnings in hurd/procfs

2015-12-29 Thread Flavio Cruz
--- procfs: Fix compiler warnings. * include/sys/procfs.h: Change uintptr_t to vm_address_t. * procfs/process.c: Fix format strings. * procfs/rootdir.c: Add missing casts. diff --git a/include/sys/procfs.h b/include/sys/procfs.h index ec82308..09d2030 100644 --- a/include/sys/procfs.h +++ b/incl

[PATCH] drop the deprecated malloc/free hooks in hurd/mach-defpager

2015-12-29 Thread Flavio Cruz
--- mach-defpager: Drop the deprecated malloc/free hooks. * mach-defpager/kalloc.c: Define malloc and free directly since those are weak symbols. diff --git a/mach-defpager/kalloc.c b/mach-defpager/kalloc.c index ef844ac..35ddf9a 100644 --- a/mach-defpager/kalloc.c +++ b/mach-defpager/kalloc.c @

[PATCH] fix compiler warnings in hurd/libstore

2015-12-29 Thread Flavio Cruz
--- libstore: Fix compiler warnings. * libstore/decode.c (store_std_leaf_decode): Drop the type variable. * libstore/zero.c (zero_decode): Likewise. * libstore/file.c: Add missing casts. diff --git a/libstore/decode.c b/libstore/decode.c index 64405ec..4bb23c1 100644 --- a/libstore/decode.c +++

Re: [PATCH] fix compiler warnings in hurd/libshouldbeinlibc

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/libnetfs

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/libftpconn

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/libihash

2015-12-29 Thread Samuel Thibault
Applied, thanks!

[PATCH] fix compiler warnings in hurd/libshouldbeinlibc

2015-12-29 Thread Flavio Cruz
--- libshouldbeinlibc: Fix compiler warnings. * libshouldbeinlibc/portinfo.c: Fix format strings. * libshouldbeinlibc/xportinfo.c: Likewise. * libshouldbeinlibc/ugids-verify-auth.c (server_verify_make_auth): Drop the const qualifier. diff --git a/libshouldbeinlibc/portinfo.c b/libshouldbeinlibc/

[PATCH] fix compiler warnings in hurd/libnetfs

2015-12-29 Thread Flavio Cruz
--- libnetfs: Fix compiler warning. * libnetfs/dir-lookup.c (netfs_S_dir_lookup): Initialize newpi. diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c index 7ca526b..8b8cd6e 100644 --- a/libnetfs/dir-lookup.c +++ b/libnetfs/dir-lookup.c @@ -49,7 +49,7 @@ netfs_S_dir_lookup (struct protid

[PATCH] fix compiler warnings in hurd/libihash

2015-12-29 Thread Flavio Cruz
--- libihash: Fix compiler warning. * libihash/ihash.c (find_index): Cast item to struct _hurd_ihash_item. diff --git a/libihash/ihash.c b/libihash/ihash.c index 596f6ff..4bc54fd 100644 --- a/libihash/ihash.c +++ b/libihash/ihash.c @@ -114,7 +114,7 @@ find_index (hurd_ihash_t ht, hurd_ihash_key_

[PATCH] fix compiler warnings in hurd/libftpconn

2015-12-29 Thread Flavio Cruz
--- libftpconn: Fix compiler warnings. * libftpconn/cmd.c (ftp_conn_abort): Remove err variable. * libftpconn/reply.c (ftp_conn_get_raw_reply): Initialize l and len. diff --git a/libftpconn/cmd.c b/libftpconn/cmd.c index 803dda7..9916d03 100644 --- a/libftpconn/cmd.c +++ b/libftpconn/cmd.c @@ -1

Re: [PATCH] fix compiler warnings in hurd/isofs

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/libdiskfs

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/isofs

2015-12-29 Thread Samuel Thibault
Applied, thanks!

[PATCH] fix compiler warnings in hurd/libdiskfs

2015-12-29 Thread Flavio Cruz
--- libdiskfs: Fix compiler warnings. * libdiskfs/boot-start.c (diskfs_start_bootstrap): Cast to char * to make mig happy. * libdiskfs/dir-chg.c (diskfs_notice_dirchange): Likewise. diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c index 731d8c6..60bf33d 100644 --- a/libdiskfs/boot-st

[PATCH] fix compiler warnings in hurd/isofs

2015-12-29 Thread Flavio Cruz
* isofs/rr.c (rrip_work): Use unsigned char. * isofs/rr.h: Use unsigned char instead of char. diff --git a/isofs/rr.c b/isofs/rr.c index adc95c3..59205da 100644 --- a/isofs/rr.c +++ b/isofs/rr.c @@ -84,7 +84,7 @@ rrip_work (struct dirrect *dr, struct rrip_lookup *rr, { struct dirrect *

[PATCH] fix compiler warnings in hurd/isofs

2015-12-29 Thread Flavio Cruz
* fatfs/dir.c: Use casts to avoid warnings. * fatfs/fat.c: Use unsigned char in fat_{from,to}_epoch. * fatfs/fat.h: Change arguments accordingly. * fatfs/fat.c (fat_read_sblock): Use size_t instead. * fatfs/inode.c (diskfs_cached_lookup_in_dirbuf): Remove err variable. * fatfs/inode.c (diskfs_user_

Re: [PATCH] fix compiler warnings in hurd/console-client

2015-12-29 Thread Samuel Thibault
Hello, Flavio Cruz, on Tue 29 Dec 2015 21:17:25 +0100, wrote: > console-client: Fix compiler warning. > > * console-client/pc-kbd.c (update_leds): Replace mach_msg_type_number_t with > int. Applied, thanks. Unfortunately, I pushed it before realizing that git-am has put the whole mail instead o

Re: [PATCH] fix compiler warnings in hurd/console-client

2015-12-29 Thread Flavio Cruz
On Tue, Dec 29, 2015 at 08:43:24PM +0100, Samuel Thibault wrote: > Flavio Cruz, on Tue 29 Dec 2015 17:35:00 +0100, wrote: > > @@ -663,10 +663,11 @@ update_leds (void) > > | (led_state.num_lock ? 2 : 0) > > | (led_state.caps_lock ? 4 : 0); > > > > - err = device_write_inband (kb

Re: [PATCH] fix compiler warnings in hurd/console-client

2015-12-29 Thread Samuel Thibault
Samuel Thibault, on Tue 29 Dec 2015 20:43:24 +0100, wrote: > Flavio Cruz, on Tue 29 Dec 2015 17:35:00 +0100, wrote: > > @@ -663,10 +663,11 @@ update_leds (void) > > | (led_state.num_lock ? 2 : 0) > > | (led_state.caps_lock ? 4 : 0); > > > > - err = device_write_inband (kbd_dev,

Re: [PATCH] fix compiler warnings in hurd/ext2fs

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/exec

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/boot

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/daemons

2015-12-29 Thread Samuel Thibault
Applied, thanks!

Re: [PATCH] fix compiler warnings in hurd/console-client

2015-12-29 Thread Samuel Thibault
Flavio Cruz, on Tue 29 Dec 2015 17:35:00 +0100, wrote: > @@ -663,10 +663,11 @@ update_leds (void) > | (led_state.num_lock ? 2 : 0) > | (led_state.caps_lock ? 4 : 0); > > - err = device_write_inband (kbd_dev, 0, -1, (void *) leds, 2, > &data_cnt); > + err = device_writ

[PATCH] fix compiler warnings in hurd/ext2fs

2015-12-29 Thread Flavio Cruz
ext2fs: Fix compiler warnings. * ext2fs/balloc.c: Use unsigned char instead of char. * ext2fs/bitmap.c Use unsigned char for bitmaps. * ext2fs/dir.c: Fix format. * ext2fs/ext2fs.h: Use unsigned char for bitmaps. * ext2fs/ialloc.c: Use unsigned char for bitmaps. Fix format string in ext2_warning.

[PATCH] fix compiler warnings in hurd/exec

2015-12-29 Thread Flavio Cruz
exec: Fix compiler warnings. * exec/elfcore.c: Cast arguments to vm_address_t. * exec/main.c: Use %lu in asprintf. diff --git a/exec/elfcore.c b/exec/elfcore.c index 3e4551e..4840217 100644 --- a/exec/elfcore.c +++ b/exec/elfcore.c @@ -408,8 +408,8 @@ dump_core (task_t task, file_t file, off_t c

[PATCH] fix compiler warnings in hurd/daemons

2015-12-29 Thread Flavio Cruz
daemons: Fix compiler warnings. * daemons/lmail.c: Initialize cached to 0. diff --git a/daemons/lmail.c b/daemons/lmail.c index 963f5dc..33ccf66 100644 --- a/daemons/lmail.c +++ b/daemons/lmail.c @@ -510,7 +510,7 @@ main (int argc, char **argv) else /* Multiple recipients. */ { -

[PATCH] fix compiler warnings in hurd/console-client

2015-12-29 Thread Flavio Cruz
console-client: Fix several compiler warnings. * console-client/bdf.c: Use size_t instead of int. * console-client/driver.c: Remove unused variable errstring. * console-client/pc-kbd.c: Cast arguments to device_write_inband. Cast sc to scancode_x1 before comparing with enum values. * console-clie

[PATCH] fix compiler warnings in hurd/boot

2015-12-29 Thread Flavio Cruz
Lately, I've had the chance to cross-compile the hurd using gcc 5.3 and I've decided to fix some compiler warnings I've noticed. I'll send the patches for each sub-directory in separate emails. boot: Fix boot.c compiler warning. * boot/boot.c: Compare header without using pointer dereferencing.