copy & pasted include guard in attoptcache.h

Started by Andres Freundover 12 years ago2 messages
#1Andres Freund
andres@2ndquadrant.com
1 attachment(s)

Hi,

attoptcache.h currently uses #ifndef SPCCACHE_H. The attached patch
fixes that.
A quick
$ grep -r '\#ifndef' src/include/|grep _H|awk '{print $2}'|sort|uniq -cd
doesn't show any further duplicated ones.

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachments:

0001-Fix-copy-pasted-include-guard-name-in-attoptcache.h.patchtext/x-patch; charset=us-asciiDownload
>From 9e71d51d750a0097795b3cf295be7ed84b7a4d53 Mon Sep 17 00:00:00 2001
From: Andres Freund <andres@anarazel.de>
Date: Sat, 6 Jul 2013 12:09:32 +0200
Subject: [PATCH] Fix copy & pasted include guard name in attoptcache.h

---
 src/include/utils/attoptcache.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/include/utils/attoptcache.h b/src/include/utils/attoptcache.h
index e1c4ab4..133a075 100644
--- a/src/include/utils/attoptcache.h
+++ b/src/include/utils/attoptcache.h
@@ -10,8 +10,8 @@
  *
  *-------------------------------------------------------------------------
  */
-#ifndef SPCCACHE_H
-#define SPCCACHE_H
+#ifndef ATTOPTCACHE_H
+#define ATTOPTCACHE_H
 
 /*
  * Attribute options.
@@ -25,4 +25,4 @@ typedef struct AttributeOpts
 
 AttributeOpts *get_attribute_options(Oid spcid, int attnum);
 
-#endif   /* SPCCACHE_H */
+#endif   /* ATTOPTCACHE_H */
-- 
1.8.3.251.g1462b67

#2Magnus Hagander
magnus@hagander.net
In reply to: Andres Freund (#1)
Re: copy & pasted include guard in attoptcache.h

On Sat, Jul 6, 2013 at 12:12 PM, Andres Freund <andres@2ndquadrant.com> wrote:

Hi,

attoptcache.h currently uses #ifndef SPCCACHE_H. The attached patch
fixes that.
A quick
$ grep -r '\#ifndef' src/include/|grep _H|awk '{print $2}'|sort|uniq -cd
doesn't show any further duplicated ones.

Applied, thanks!

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers