commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 56/75: fix compiler warnings in hurd/nfs and hurd/nfsd


From: Samuel Thibault
Subject: [hurd] 56/75: fix compiler warnings in hurd/nfs and hurd/nfsd
Date: Thu, 14 Jan 2016 01:04:10 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch dde
in repository hurd.

commit 4d06239d39f8433a7246abae5645e9ad54cca1bb
Author: Flavio Cruz <address@hidden>
Date:   Tue Dec 29 23:46:12 2015 +0100

    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.
---
 nfsd/fsys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nfsd/fsys.c b/nfsd/fsys.c
index 7b15d15..f746716 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]