bug-coreutils
[Top][All Lists]
Advanced

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

[PATCH] maint: df.c: adapt to newer gnulib


From: Jim Meyering
Subject: [PATCH] maint: df.c: adapt to newer gnulib
Date: Tue, 22 Sep 2009 19:46:08 +0200

FYI, I expect to update coreutils to use the latest gnulib pretty soon.
In preparing for that, I noticed a new syntax-check failure when using
the newer gnulib:

    $ make syntax-check
    ...
    src/df.c
    maint.mk: the above files include "canonicalize.h" but don't use it
    make: *** [sc_prohibit_canonicalize_without_use] Error 1

I will push this patch first thing after the gnulib update commit.

Jim

>From 47a967b38b858610efdddc393b4ffc3d07b7e5d7 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Tue, 22 Sep 2009 19:43:23 +0200
Subject: [PATCH] maint: df.c: adapt to newer gnulib

* src/df.c: Don't include "canonicalize.h".  No longer needed,
since canonicalize_file_name is now guaranteed to be declared
in <stdlib.h>, thanks to gnulib.
---
 src/df.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/df.c b/src/df.c
index aef7b2d..fd59aea 100644
--- a/src/df.c
+++ b/src/df.c
@@ -24,7 +24,6 @@
 #include <getopt.h>

 #include "system.h"
-#include "canonicalize.h"
 #include "error.h"
 #include "fsusage.h"
 #include "human.h"
--
1.6.5.rc1.220.g6de7f




reply via email to

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