Fixed fatal linker error (global symbol conflict of "writephonebook")
[gnokii.git] / gnokii / gnokii.c
index 120a83f..1080b3d 100644 (file)
@@ -284,6 +284,8 @@ int checkargs(int opt, struct gnokii_arg_len gals[], int argc)
        else return 1;
 }
 
+static int writephonebook(int argc, char *args[]);
+
 /* Main function - handles command line arguments, passes them to separate
    functions accordingly. */
 int main(int argc, char *argv[])
@@ -2452,7 +2454,7 @@ int getmemory(int argc, char *argv[])
 /* Read data from stdin, parse and write to phone.  The parsing is relatively
    crude and doesn't allow for much variation from the stipulated format. */
 /* FIXME: I guess there's *very* similar code in xgnokii */
-int writephonebook(int argc, char *args[])
+static int writephonebook(int argc, char *args[])
 {
        GSM_PhonebookEntry entry;
        GSM_Error error;