summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-04-20 23:10:22 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-04-20 23:10:56 +0200
commit315b33540a008fba0af1cdbad5d3448d98a6e73c (patch)
treeb72a0ee2a1dce0ece7f45fedb45601327a8497b6 /src
parent0791eaabca0fb1ef8a8675e47d701bbcde4d4a3f (diff)
downloadcalcurse-315b33540a008fba0af1cdbad5d3448d98a6e73c.zip
Mark several functions static
These are not needed outside of the corresponding compilation units. Spotted with "-Wmissing-prototypes". Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r--src/config.c2
-rw-r--r--src/ical.c2
-rw-r--r--src/io.c2
-rw-r--r--src/sha1.c2
-rw-r--r--src/todo.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/config.c b/src/config.c
index 51a0792..30c98e1 100644
--- a/src/config.c
+++ b/src/config.c
@@ -327,7 +327,7 @@ config_serialize_str (char *dest, const char *val)
* If ncurses library was compiled with --enable-ext-funcs,
* then default color is -1.
*/
-void
+static void
config_color_theme_name (char *theme_name)
{
#define MAXCOLORS 8
diff --git a/src/ical.c b/src/ical.c
index 30e155f..d646072 100644
--- a/src/ical.c
+++ b/src/ical.c
@@ -828,7 +828,7 @@ ical_add_exc (llist_t *exc_head, long date)
* This property defines the list of date/time exceptions for a
* recurring calendar component.
*/
-void
+static void
ical_read_exdate (llist_t *exc, FILE *log, char *exstr, unsigned *noskipped,
const int itemline)
{
diff --git a/src/io.c b/src/io.c
index 2067dd0..7f8565a 100644
--- a/src/io.c
+++ b/src/io.c
@@ -324,7 +324,7 @@ io_extract_data (char *dst_data, const char *org, int len)
*dst_data = '\0';
}
-void
+static void
display_mark (void)
{
const int DISPLAY_TIME = 1;
diff --git a/src/sha1.c b/src/sha1.c
index 08d5e5e..e1bb8cc 100644
--- a/src/sha1.c
+++ b/src/sha1.c
@@ -67,7 +67,7 @@
#define R4(v, w, x, y, z, i) z += (w ^ x ^ y) + blk (i) + 0xCA62C1D6 + \
rol (v, 5); w = rol (w, 30);
-void
+static void
sha1_transform (uint32_t state[5], const uint8_t buffer[64])
{
typedef union {
diff --git a/src/todo.c b/src/todo.c
index 7419222..27e9c36 100644
--- a/src/todo.c
+++ b/src/todo.c
@@ -506,7 +506,7 @@ todo_pipe_item (void)
wins_unprepare_external ();
}
-void
+static void
todo_free (struct todo *todo)
{
mem_free (todo->mesg);