From e8aa81e7e03d66973e70baea9f28c72d56da581e Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 17:36:33 +0000 Subject: [PATCH] Strip directory from #include when it's not needed. --- h/md5.h | 2 +- h/mf.h | 2 +- h/mh.h | 4 ++-- sbr/ctype-checked.c | 2 +- sbr/icalendar.l | 4 ++-- sbr/icalparse.y | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/h/md5.h b/h/md5.h index cc053ef6..e1906046 100644 --- a/h/md5.h +++ b/h/md5.h @@ -6,7 +6,7 @@ * RSAREF types and constants */ -#include "h/nmh.h" +#include "nmh.h" #include /* UINT4 defines a four byte word */ diff --git a/h/mf.h b/h/mf.h index 8a5536d7..13dd0ab6 100644 --- a/h/mf.h +++ b/h/mf.h @@ -1,7 +1,7 @@ /* mf.h -- include file for mailbox filters */ -#include "h/nmh.h" +#include "nmh.h" #ifndef NOTOK # define NOTOK (-1) diff --git a/h/mh.h b/h/mh.h index 83223a61..bf746f18 100644 --- a/h/mh.h +++ b/h/mh.h @@ -1,7 +1,7 @@ /* mh.h -- main header file for all of nmh */ -#include "h/nmh.h" +#include "nmh.h" /* It's undefined behaviour in C99 to convert from a function pointer to * a data-object pointer, e.g. void pointer. gcc's -pedantic warns of @@ -574,4 +574,4 @@ extern char *version_str; extern char *whatnowproc; extern char *whomproc; -#include "h/prototypes.h" +#include "prototypes.h" diff --git a/sbr/ctype-checked.c b/sbr/ctype-checked.c index 3c576642..651d06cf 100644 --- a/sbr/ctype-checked.c +++ b/sbr/ctype-checked.c @@ -15,7 +15,7 @@ #error "Please report this to nmh's authors." #endif -#include "sbr/ctype-checked.h" +#include "ctype-checked.h" /* ctype_identity returns its index less one allowing [EOF, 255] to be * used as indexes to ctype_identity + 1. */ diff --git a/sbr/icalendar.l b/sbr/icalendar.l index 7e691381..0681f3ad 100644 --- a/sbr/icalendar.l +++ b/sbr/icalendar.l @@ -10,8 +10,8 @@ %{ #include "h/mh.h" #include "h/icalendar.h" -#include "sbr/icalparse.h" -#include "sbr/base64.h" +#include "icalparse.h" +#include "base64.h" static char *unfold (char *, size_t *); static void destroy_icallex(void); diff --git a/sbr/icalparse.y b/sbr/icalparse.y index 0213fa90..7549aa64 100644 --- a/sbr/icalparse.y +++ b/sbr/icalparse.y @@ -34,7 +34,7 @@ */ #include "h/mh.h" -#include "sbr/error.h" +#include "error.h" #include "h/icalendar.h" #include "h/utils.h" -- 2.56.0