From eff1f8d633fa2b07396e1d1f82043823d6916ba2 Mon Sep 17 00:00:00 2001 From: linus Date: Tue, 23 Mar 2010 22:45:37 +0000 Subject: Add Emacs local variable for stroustrup style. git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@530 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- catgconf.c | 4 ++++ debug.c | 4 ++++ debug.h | 4 ++++ dtls.c | 4 ++++ dtls.h | 4 ++++ gconfig.c | 4 ++++ gconfig.h | 4 ++++ hash.c | 4 ++++ hash.h | 4 ++++ hostport.c | 4 ++++ hostport.h | 4 ++++ list.c | 4 ++++ list.h | 4 ++++ radmsg.c | 4 ++++ radmsg.h | 4 ++++ radsecproxy.c | 4 ++++ radsecproxy.h | 4 ++++ tcp.c | 4 ++++ tcp.h | 4 ++++ tls.c | 4 ++++ tls.h | 4 ++++ tlscommon.c | 4 ++++ tlscommon.h | 4 ++++ tlv11.c | 4 ++++ tlv11.h | 4 ++++ udp.c | 4 ++++ udp.h | 4 ++++ util.c | 4 ++++ util.h | 4 ++++ 29 files changed, 116 insertions(+) diff --git a/catgconf.c b/catgconf.c index 9458156..650a0e9 100644 --- a/catgconf.c +++ b/catgconf.c @@ -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 --- 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 --- 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 --- 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 --- a/dtls.h +++ b/dtls.h @@ -7,3 +7,7 @@ */ const struct protodefs *dtlsinit(uint8_t h); + +/* Local Variables: */ +/* c-file-style: "stroustrup" */ +/* End: */ diff --git a/gconfig.c b/gconfig.c index 6009386..b7107aa 100644 --- a/gconfig.c +++ b/gconfig.c @@ -545,3 +545,7 @@ errexit: free(val); return 0; } + +/* Local Variables: */ +/* c-file-style: "stroustrup" */ +/* End: */ diff --git a/gconfig.h b/gconfig.h index 4861d5f..463ebdf 100644 --- 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 --- 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 --- 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: */ diff --git a/hostport.c b/hostport.c index d68208a..54c1d74 100644 --- a/hostport.c +++ b/hostport.c @@ -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: */ diff --git a/hostport.h b/hostport.h index 04add64..425bb8f 100644 --- a/hostport.h +++ b/hostport.h @@ -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 --- 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 --- 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: */ diff --git a/radmsg.c b/radmsg.c index e2d4cf2..0a46e71 100644 --- 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: */ diff --git a/radmsg.h b/radmsg.h index 99364dc..8219a5c 100644 --- 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: */ diff --git a/radsecproxy.c b/radsecproxy.c index 350fcb2..7a8b5e2 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -3198,3 +3198,7 @@ int main(int argc, char **argv) { for (;;) sleep(1000); } + +/* Local Variables: */ +/* c-file-style: "stroustrup" */ +/* End: */ diff --git a/radsecproxy.h b/radsecproxy.h index 314c000..4601259 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -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 --- 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 --- 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 --- 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 --- a/tls.h +++ b/tls.h @@ -7,3 +7,7 @@ */ const struct protodefs *tlsinit(uint8_t h); + +/* Local Variables: */ +/* c-file-style: "stroustrup" */ +/* End: */ diff --git a/tlscommon.c b/tlscommon.c index 40ea180..6d36ebb 100644 --- a/tlscommon.c +++ b/tlscommon.c @@ -635,3 +635,7 @@ int addmatchcertattr(struct clsrvconf *conf) { static void tlsdummy() { } #endif + +/* Local Variables: */ +/* c-file-style: "stroustrup" */ +/* End: */ diff --git a/tlscommon.h b/tlscommon.h index 97388e4..084cb1c 100644 --- a/tlscommon.h +++ b/tlscommon.h @@ -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 --- 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 --- 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 --- 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 --- 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 --- 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 --- 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: */ -- cgit v1.1