summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-30 14:30:24 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-30 14:30:24 -0700
commit79c2b002124e3378de5df58da53b153d8518d295 (patch)
tree438b4d7b62e74fbaa6d9a9b80562f55a5fdd7c61
parent15edba9ab0c50cbd5ee8654c6a0383052d66838f (diff)
downloadsubsurface-79c2b002124e3378de5df58da53b153d8518d295.tar.gz
Make more uemis functions static
These are no longer called from other parts of the code. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--uemis.c4
-rw-r--r--uemis.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/uemis.c b/uemis.c
index dc2e29fa8..f6b9bb1ae 100644
--- a/uemis.c
+++ b/uemis.c
@@ -45,7 +45,7 @@ static void decodeblock( unsigned char in[4], unsigned char out[3] ) {
/*
* decode a base64 encoded stream discarding padding, line breaks and noise
*/
-void decode( uint8_t *inbuf, uint8_t *outbuf, int inbuf_len ) {
+static void decode( uint8_t *inbuf, uint8_t *outbuf, int inbuf_len ) {
uint8_t in[4], out[3], v;
int i,len,indx_in=0,indx_out=0;
@@ -78,7 +78,7 @@ void decode( uint8_t *inbuf, uint8_t *outbuf, int inbuf_len ) {
/*
* convert the base64 data blog
*/
-int uemis_convert_base64(char *base64, uint8_t **data) {
+static int uemis_convert_base64(char *base64, uint8_t **data) {
int len,datalen;
len = strlen(base64);
diff --git a/uemis.h b/uemis.h
index 9e6e0950a..21d11e707 100644
--- a/uemis.h
+++ b/uemis.h
@@ -12,8 +12,6 @@ int uemis_get_weight_unit(int diveid);
void uemis_mark_divelocation(int diveid, int divespot, char **location, double *longitude, double *latitude);
void uemis_set_divelocation(int divespot, char *text, double longitude, double latitude);
-void decode(uint8_t *in, uint8_t *out, int len);
-
typedef struct {
uint16_t dive_time;
uint16_t water_pressure; // (in cbar)