[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] fix compiler warnings in hurd/nfs and hurd/nfsd
From: |
Samuel Thibault |
Subject: |
Re: [PATCH] fix compiler warnings in hurd/nfs and hurd/nfsd |
Date: |
Tue, 29 Dec 2015 23:17:12 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
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 (index_file, "%d %as\n", &index, &name);
> + nitems = fscanf (index_file, "%d %as\n", &index, (float *)&name);
I'm pretty sure that wasn't the original purpose :) I guess the 'a'
qualifier is meant to mean 'allocate whatever size is needed'.
Samuel