summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2015-12-29 23:46:12 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-12-30 00:06:09 +0100
commit4d06239d39f8433a7246abae5645e9ad54cca1bb (patch)
tree9836954eaa5eee39e414eba321968e73f7373ba0
parent5089d4a559eb3a0a0f008ad00ba8c5ed8bbc94c6 (diff)
fix compiler warnings in hurd/nfs and hurd/nfsd
* nfsd/fsys.c (init_filesystems): Use 'm' qualifier instead of 'a' for allocating the name in fscanf call.
-rw-r--r--nfsd/fsys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nfsd/fsys.c b/nfsd/fsys.c
index 7b15d150..f7467165 100644
--- a/nfsd/fsys.c
+++ b/nfsd/fsys.c
@@ -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 %ms\n", &index, &name);
if (nitems == EOF)
{
fclose (index_file);