Avoid "definition without prototype" warnings
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 22 Oct 2015 14:27:58 +0000 (16:27 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 22 Oct 2015 14:27:58 +0000 (16:27 +0200)
src/data/por-file-reader.c
src/data/sys-file-reader.c

index bba62d168f8f72fa2c8842c16bee0ad5ff85b455..058a0a81c5e12355b2d55f761a5d989819eb7ce0 100644 (file)
@@ -255,7 +255,7 @@ static void read_documents (struct pfm_reader *, struct dictionary *);
 /* Reads the dictionary from file with handle H, and returns it in a
    dictionary structure.  This dictionary may be modified in order to
    rename, reorder, and delete variables, etc. */
-struct any_reader *
+static struct any_reader *
 pfm_open (struct file_handle *fh)
 {
   struct pool *volatile pool = NULL;
@@ -322,7 +322,7 @@ pfm_open (struct file_handle *fh)
   return NULL;
 }
 
-struct casereader *
+static struct casereader *
 pfm_decode (struct any_reader *r_, const char *encoding UNUSED,
             struct dictionary **dictp, struct any_read_info *info)
 {
@@ -924,7 +924,7 @@ por_file_casereader_read (struct casereader *reader, void *r_)
 
 /* Detects whether FILE is an SPSS portable file.  Returns 1 if so, 0 if not,
    and a negative errno value if there is an error reading FILE. */
-int
+static int
 pfm_detect (FILE *file)
 {
   unsigned char header[464];
index b855b45566a179951cfde9315245bf90ee44dd4a..ddc685431b470c335694f98378d97754817ed056 100644 (file)
@@ -537,7 +537,7 @@ read_record (struct sfm_reader *r, int type,
 
 /* Returns the character encoding obtained from R, or a null pointer if R
    doesn't have an indication of its character encoding.  */
-const char *
+static const char *
 sfm_get_encoding (const struct sfm_reader *r)
 {
   /* The EXT_ENCODING record is the best way to determine dictionary