Skip to content

Commit

Permalink
Add Emacs local variable for stroustrup style.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@530 e88ac4ed-0b26-0410-9574-a7f39faa03bf
  • Loading branch information
linus authored and linus committed Mar 23, 2010
1 parent 95f2176 commit eff1f8d
Show file tree
Hide file tree
Showing 29 changed files with 116 additions and 0 deletions.
4 changes: 4 additions & 0 deletions catgconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@ int main(int argc, char **argv) {
debug(DBG_ERR, "Usage:\n%s [ -c ] configfile", argv[0]);
exit(1);
}

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,7 @@ void debugx(int status, uint8_t level, char *format, ...) {
}
exit(status);
}

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,3 +709,7 @@ const struct protodefs *dtlsinit(uint8_t h) {
return NULL;
}
#endif

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions dtls.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
*/

const struct protodefs *dtlsinit(uint8_t h);

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions gconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,3 +545,7 @@ int getgenericconfig(struct gconffile **cf, char *block, ...) {
free(val);
return 0;
}

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions gconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions hostport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions hostport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions list.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions radmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions radmsg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions radsecproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3198,3 +3198,7 @@ int main(int argc, char **argv) {
for (;;)
sleep(1000);
}

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions radsecproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,3 +372,7 @@ const struct protodefs *tcpinit(uint8_t h) {
return NULL;
}
#endif

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
*/

const struct protodefs *tcpinit(uint8_t h);

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,3 +473,7 @@ const struct protodefs *tlsinit(uint8_t h) {
return NULL;
}
#endif

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
*/

const struct protodefs *tlsinit(uint8_t h);

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions tlscommon.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,3 +635,7 @@ int addmatchcertattr(struct clsrvconf *conf) {
static void tlsdummy() {
}
#endif

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions tlscommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions tlv11.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,7 @@ uint8_t *tlv2buf(uint8_t *p, struct tlv *tlv) {
}
return p;
}

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions tlv11.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
4 changes: 4 additions & 0 deletions udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,3 +366,7 @@ const struct protodefs *udpinit(uint8_t h) {
return NULL;
}
#endif

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions udp.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
*/

const struct protodefs *udpinit(uint8_t h);

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,7 @@ int connecttcp(struct addrinfo *addrinfo, struct addrinfo *src, uint16_t timeout
}
return s;
}

/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */
4 changes: 4 additions & 0 deletions util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: */

0 comments on commit eff1f8d

Please sign in to comment.