summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-04-29 12:42:25 +0200
committerLinus Nordberg <linus@nordu.net>2016-04-29 12:42:25 +0200
commit41dfffcc1572073c3d1d201a0a19dd2c4ca1bb4a (patch)
tree679382b875bb46f2755545e86571e6ae6f734fd5
parent3b905377a73863f7809523f768875a6d3aa260f0 (diff)
Whitespace and c-file-style "BSD".
-rw-r--r--c_src/filebuffer.c2
-rw-r--r--c_src/permdb.c12
-rw-r--r--c_src/permdbport.c2
-rw-r--r--c_src/permdbpy.c2
-rw-r--r--c_src/permdbtest.c2
-rw-r--r--c_src/util.c2
-rw-r--r--c_src/util.h4
7 files changed, 15 insertions, 11 deletions
diff --git a/c_src/filebuffer.c b/c_src/filebuffer.c
index 82fd4d2..b8bd8ab 100644
--- a/c_src/filebuffer.c
+++ b/c_src/filebuffer.c
@@ -230,5 +230,5 @@ bf_sha256(buffered_file *file, unsigned char *checksum)
}
/* Local Variables: */
-/* c-file-style: "linux" */
+/* c-file-style: "BSD" */
/* End: */
diff --git a/c_src/permdb.c b/c_src/permdb.c
index 0cf04ce..66b9813 100644
--- a/c_src/permdb.c
+++ b/c_src/permdb.c
@@ -155,13 +155,13 @@ static const uint64_t index_commit_cookie = 0x2fb1778c74a402e4;
static const uint64_t index_node_cookie = 0x2e0f555ad73210d1;
static const uint8_t data_file_cookie[] =
- {0xd5, 0x35, 0x51, 0xba, 0x53, 0x9a, 0x42, 0x52};
+ {0xd5, 0x35, 0x51, 0xba, 0x53, 0x9a, 0x42, 0x52};
static const uint8_t data_entry_cookie[] =
- {0xe7, 0xc1, 0xcd, 0xc2, 0xba, 0x3d, 0xc7, 0x7c};
+ {0xe7, 0xc1, 0xcd, 0xc2, 0xba, 0x3d, 0xc7, 0x7c};
static const uint8_t data_commit_start_cookie[] =
- {0x75, 0xc2, 0xe4, 0xb3, 0xd5, 0xf6, 0x43, 0xa1};
+ {0x75, 0xc2, 0xe4, 0xb3, 0xd5, 0xf6, 0x43, 0xa1};
static const uint8_t data_commit_end_cookie[] =
- {0x2b, 0x05, 0xee, 0xd6, 0x1b, 0x5a, 0xf5, 0x50};
+ {0x2b, 0x05, 0xee, 0xd6, 0x1b, 0x5a, 0xf5, 0x50};
int
committree(permdb_object *state);
@@ -852,7 +852,7 @@ addvalue(permdb_object *state, const unsigned char *key, unsigned int keylength,
unsigned int foundlevel = utarray_len(nodes) - 1;
- node_object lastnode = *(node_object *)utarray_back(nodes);
+ node_object lastnode = *(node_object *) utarray_back(nodes);
if (get_entry_in_node(lastnode, (unsigned char) kb) == 0) {
if (data != NULL) {
dataoffset = writedata(state, key, data, datalength);
@@ -1152,5 +1152,5 @@ portloop(permdb_object *state)
}
/* Local Variables: */
-/* c-file-style: "linux" */
+/* c-file-style: "BSD" */
/* End: */
diff --git a/c_src/permdbport.c b/c_src/permdbport.c
index a0e730b..39b0b72 100644
--- a/c_src/permdbport.c
+++ b/c_src/permdbport.c
@@ -50,5 +50,5 @@ main(int argc, char *argv[])
}
/* Local Variables: */
-/* c-file-style: "linux" */
+/* c-file-style: "BSD" */
/* End: */
diff --git a/c_src/permdbpy.c b/c_src/permdbpy.c
index cc1e36f..beea36a 100644
--- a/c_src/permdbpy.c
+++ b/c_src/permdbpy.c
@@ -205,5 +205,5 @@ initpermdb()
}
/* Local Variables: */
-/* c-file-style: "linux" */
+/* c-file-style: "BSD" */
/* End: */
diff --git a/c_src/permdbtest.c b/c_src/permdbtest.c
index 5b1e21b..2ab6510 100644
--- a/c_src/permdbtest.c
+++ b/c_src/permdbtest.c
@@ -160,5 +160,5 @@ main(int argc, char *argv[])
}
/* Local Variables: */
-/* c-file-style: "linux" */
+/* c-file-style: "BSD" */
/* End: */
diff --git a/c_src/util.c b/c_src/util.c
index 9a743a8..4913972 100644
--- a/c_src/util.c
+++ b/c_src/util.c
@@ -105,5 +105,5 @@ read_be16(void *ptr)
}
/* Local Variables: */
-/* c-file-style: "linux" */
+/* c-file-style: "BSD" */
/* End: */
diff --git a/c_src/util.h b/c_src/util.h
index 4af8005..f08f2c3 100644
--- a/c_src/util.h
+++ b/c_src/util.h
@@ -36,3 +36,7 @@ uint16_t
read_be16(void *ptr);
#endif
+
+/* Local Variables: */
+/* c-file-style: "BSD" */
+/* End: */