[PATCH] Type definition

2013-12-14 Thread Marin Ramesa
This is a better version of this patch: http://lists.gnu.org/archive/html/bug-hurd/2013-11/msg00474.html * i386/i386/ast_check.c (init_ast_check, cause_ast_check): Define return type. * i386/i386/pic.c (intnull, prtnull): Define argument types. * i386/i386at/com.c (compr_addr): Likewise. (compr):

Re: [PATCH 4/4] device/chario.c (char_write): avoid segmentation fault

2013-12-14 Thread Richard Braun
On Fri, Dec 13, 2013 at 09:06:55PM +0100, Marin Ramesa wrote: > Check if the source of the data in the source structure > memory is a target structure data. Do this by comparing the > length of the char values starting with the source address until > null-termination to the size of the target str

Re: [PATCH 4/4] device/chario.c (char_write): avoid segmentation fault

2013-12-14 Thread Marin Ramesa
On 14.12.2013 12:45:32, Richard Braun wrote: > On Fri, Dec 13, 2013 at 09:06:55PM +0100, Marin Ramesa wrote: > > Check if the source of the data in the source structure > > memory is a target structure data. Do this by comparing the > > length of the char values starting with the source address un

Re: [PATCH 4/4] utils/rpctrace: escape non-printable characters in strings

2013-12-14 Thread Justus Winter
Quoting Ivan Shmakov (2013-12-13 17:05:19) > > Justus Winter <4win...@informatik.uni-hamburg.de> writes: > > > * utils/rpctrace.c (escape_sequences): New char array mapping > > characters to their escape sequence. > > […] > > > +static char escape_sequences[0xff] = > > JFTR: [0xF

[PATCH] device/chario.c (char_write): avoid segmentation fault

2013-12-14 Thread Marin Ramesa
This is a better version of this patch: http://lists.gnu.org/archive/html/bug-hurd/2013-12/msg00400.html It uses strlen(), instead of reimplementing it. * device/chario.c: Include string.h. (char_write): New if statement. --- device/chario.c | 5 + 1 file changed, 5 insertions(+) diff --g