Add Emacs local variable for stroustrup style.
authorlinus <linus>
Tue, 23 Mar 2010 22:45:37 +0000 (22:45 +0000)
committerlinus <linus@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Tue, 23 Mar 2010 22:45:37 +0000 (22:45 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@530 e88ac4ed-0b26-0410-9574-a7f39faa03bf

29 files changed:
catgconf.c
debug.c
debug.h
dtls.c
dtls.h
gconfig.c
gconfig.h
hash.c
hash.h
hostport.c
hostport.h
list.c
list.h
radmsg.c
radmsg.h
radsecproxy.c
radsecproxy.h
tcp.c
tcp.h
tls.c
tls.h
tlscommon.c
tlscommon.h
tlv11.c
tlv11.h
udp.c
udp.h
util.c
util.h

index 9458156..650a0e9 100644 (file)
@@ -67,3 +67,7 @@ usage:
     debug(DBG_ERR, "Usage:\n%s [ -c ] configfile", argv[0]);
     exit(1);
 }
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/debug.c b/debug.c
index 6943090..b8c7ed1 100644 (file)
--- a/debug.c
+++ b/debug.c
@@ -177,3 +177,7 @@ void debugx(int status, uint8_t level, char *format, ...) {
     }
     exit(status);
 }
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/debug.h b/debug.h
index a089258..be37a54 100644 (file)
--- a/debug.h
+++ b/debug.h
@@ -23,3 +23,7 @@ void debug(uint8_t level, char *format, ...);
 void debugx(int status, uint8_t level, char *format, ...);
 int debug_set_destination(char *dest);
 void debug_reopen_log();
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/dtls.c b/dtls.c
index ef6c41a..d99c55d 100644 (file)
--- a/dtls.c
+++ b/dtls.c
@@ -709,3 +709,7 @@ const struct protodefs *dtlsinit(uint8_t h) {
     return NULL;
 }
 #endif
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/dtls.h b/dtls.h
index 771aaef..3426e63 100644 (file)
--- a/dtls.h
+++ b/dtls.h
@@ -7,3 +7,7 @@
  */
 
 const struct protodefs *dtlsinit(uint8_t h);
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
index 6009386..b7107aa 100644 (file)
--- a/gconfig.c
+++ b/gconfig.c
@@ -545,3 +545,7 @@ errexit:
     free(val);
     return 0;
 }
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
index 4861d5f..463ebdf 100644 (file)
--- a/gconfig.h
+++ b/gconfig.h
@@ -23,3 +23,7 @@ int popgconf(struct gconffile **cf);
 void freegconfmstr(char **mstr);
 void freegconf(struct gconffile **cf);
 struct gconffile *openconfigfile(const char *file);
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/hash.c b/hash.c
index e5d5881..fd3c04b 100644 (file)
--- a/hash.c
+++ b/hash.c
@@ -130,3 +130,7 @@ struct hash_entry *hash_next(struct hash_entry *entry) {
     e->next = (struct list_node *)entry->next->next;
     return e;
 }
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/hash.h b/hash.h
index d451105..48f54a3 100644 (file)
--- a/hash.h
+++ b/hash.h
@@ -42,3 +42,7 @@ struct hash_entry *hash_first(struct hash *hash);
 
 /* returns the next entry after the argument */
 struct hash_entry *hash_next(struct hash_entry *entry);
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
index d68208a..54c1d74 100644 (file)
@@ -305,3 +305,7 @@ int connecttcphostlist(struct list *hostports,  struct addrinfo *src) {
     debug(DBG_ERR, "connecttcphostlist: failed");
     return -1;
 }
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
index 04add64..425bb8f 100644 (file)
@@ -22,3 +22,7 @@ int resolvehostports(struct list *hostports, int socktype);
 struct addrinfo *resolvepassiveaddrinfo(char *hostport, char *default_port, int socktype);
 int addressmatches(struct list *hostports, struct sockaddr *addr, uint8_t checkport);
 int connecttcphostlist(struct list *hostports,  struct addrinfo *src);
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/list.c b/list.c
index 5bfea67..58ab7aa 100644 (file)
--- a/list.c
+++ b/list.c
@@ -117,3 +117,7 @@ struct list_node *list_next(struct list_node *node) {
 uint32_t list_count(struct list *list) {
     return list->count;
 }
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/list.h b/list.h
index 6b165d3..80c0128 100644 (file)
--- a/list.h
+++ b/list.h
@@ -45,3 +45,7 @@ struct list_node *list_next(struct list_node *node);
 
 /* returns number of nodes */
 uint32_t list_count(struct list *list);
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
index e2d4cf2..0a46e71 100644 (file)
--- a/radmsg.c
+++ b/radmsg.c
@@ -312,3 +312,7 @@ struct radmsg *buf2radmsg(uint8_t *buf, uint8_t *secret, uint8_t *rqauth) {
     }
     return msg;
 }
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
index 99364dc..8219a5c 100644 (file)
--- a/radmsg.h
+++ b/radmsg.h
@@ -39,3 +39,7 @@ int radmsg_add(struct radmsg *, struct tlv *);
 struct tlv *radmsg_gettype(struct radmsg *, uint8_t);
 uint8_t *radmsg2buf(struct radmsg *msg, uint8_t *);
 struct radmsg *buf2radmsg(uint8_t *, uint8_t *, uint8_t *);
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
index 350fcb2..7a8b5e2 100644 (file)
@@ -3198,3 +3198,7 @@ int main(int argc, char **argv) {
     for (;;)
        sleep(1000);
 }
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
index 314c000..4601259 100644 (file)
@@ -209,3 +209,7 @@ void freerq(struct request *rq);
 int radsrv(struct request *rq);
 void replyh(struct server *server, unsigned char *buf);
 struct addrinfo *resolve_hostport_addrinfo(uint8_t type, char *hostport);
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/tcp.c b/tcp.c
index c04309d..8d55941 100644 (file)
--- a/tcp.c
+++ b/tcp.c
@@ -372,3 +372,7 @@ const struct protodefs *tcpinit(uint8_t h) {
     return NULL;
 }
 #endif
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/tcp.h b/tcp.h
index c9b653c..c388895 100644 (file)
--- a/tcp.h
+++ b/tcp.h
@@ -7,3 +7,7 @@
  */
 
 const struct protodefs *tcpinit(uint8_t h);
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/tls.c b/tls.c
index 1d8b14c..f79529f 100644 (file)
--- a/tls.c
+++ b/tls.c
@@ -473,3 +473,7 @@ const struct protodefs *tlsinit(uint8_t h) {
     return NULL;
 }
 #endif
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/tls.h b/tls.h
index 2a88315..1a8735e 100644 (file)
--- a/tls.h
+++ b/tls.h
@@ -7,3 +7,7 @@
  */
 
 const struct protodefs *tlsinit(uint8_t h);
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
index 40ea180..6d36ebb 100644 (file)
@@ -635,3 +635,7 @@ int addmatchcertattr(struct clsrvconf *conf) {
 static void tlsdummy() {
 }
 #endif
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
index 97388e4..084cb1c 100644 (file)
@@ -33,3 +33,7 @@ int verifyconfcert(X509 *cert, struct clsrvconf *conf);
 int conftls_cb(struct gconffile **cf, void *arg, char *block, char *opt, char *val);
 int addmatchcertattr(struct clsrvconf *conf);
 #endif
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/tlv11.c b/tlv11.c
index d5d66aa..c609f4e 100644 (file)
--- a/tlv11.c
+++ b/tlv11.c
@@ -120,3 +120,7 @@ uint8_t *tlv2buf(uint8_t *p, struct tlv *tlv) {
     }
     return p;
 }
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/tlv11.h b/tlv11.h
index 8a2c601..d85f1fa 100644 (file)
--- a/tlv11.h
+++ b/tlv11.h
@@ -21,3 +21,7 @@ void freetlvlist(struct list *);
 void rmtlv(struct list *, uint8_t);
 uint8_t *tlv2str(struct tlv *tlv);
 uint8_t *tlv2buf(uint8_t *, struct tlv *tlv);
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/udp.c b/udp.c
index ce57494..4740fd0 100644 (file)
--- a/udp.c
+++ b/udp.c
@@ -366,3 +366,7 @@ const struct protodefs *udpinit(uint8_t h) {
     return NULL;
 }
 #endif
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/udp.h b/udp.h
index 3d4e02d..8f26e15 100644 (file)
--- a/udp.h
+++ b/udp.h
@@ -7,3 +7,7 @@
  */
 
 const struct protodefs *udpinit(uint8_t h);
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/util.c b/util.c
index 18c79f6..5235d8a 100644 (file)
--- a/util.c
+++ b/util.c
@@ -250,3 +250,7 @@ int connecttcp(struct addrinfo *addrinfo, struct addrinfo *src, uint16_t timeout
     }
     return s;
 }
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */
diff --git a/util.h b/util.h
index 68162a4..d8d002c 100644 (file)
--- a/util.h
+++ b/util.h
@@ -19,3 +19,7 @@ void disable_DF_bit(int socket, struct addrinfo *res);
 int bindtoaddr(struct addrinfo *addrinfo, int family, int reuse, int v6only);
 int connecttcp(struct addrinfo *addrinfo, struct addrinfo *src, uint16_t timeout);
 
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */