summaryrefslogtreecommitdiffstats
path: root/axlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'axlib.h')
-rw-r--r--axlib.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/axlib.h b/axlib.h
index b6e36c9..39a08af 100644
--- a/axlib.h
+++ b/axlib.h
@@ -52,7 +52,7 @@ extern int ax25_aton(const char *, struct full_sockaddr_ax25 *);
* string but in a NULL terminated array of pointers to the strings.
* On error a -1 is returned, otherwise the length of the structure is returned.
*/
-extern int ax25_aton_arglist(char ** , struct full_sockaddr_ax25 *);
+extern int ax25_aton_arglist(const char ** , struct full_sockaddr_ax25 *);
/*
* This function converts an ASCII representation of a Rose address into
@@ -66,44 +66,44 @@ extern int rose_aton(const char *, char *);
* network format. The data returned is in a statically allocated area, and
* subsequent calls will destroy previous callsigns returned.
*/
-extern char *ax25_ntoa(ax25_address *);
+extern char *ax25_ntoa(const ax25_address *);
/*
* This function returns the textual representation of a Rose address in
* network format. The data returned is in a statically allocated area, and
* subsequent calls will destroy previous callsigns returned.
*/
-extern char *rose_ntoa(rose_address *);
+extern char *rose_ntoa(const rose_address *);
/*
* Compares two AX.25 callsigns in network format. Returns a 0 if they are
* identical, 1 if they differ, or 2 if only the SSIDs differ.
*/
-extern int ax25_cmp(ax25_address *, ax25_address *);
+extern int ax25_cmp(const ax25_address *, const ax25_address *);
/*
* Compares two Rose addresses in network format. Returns a 0 if they are
* identical, 1 if they differ.
*/
-extern int rose_cmp(rose_address *, rose_address *);
+extern int rose_cmp(const rose_address *, const rose_address *);
/*
* Validates an AX.25 callsign, returns TRUE if it is valid, or FALSE if it
* is not. The callsign should be AX.25 shifted format.
*/
-extern int ax25_validate(char *);
+extern int ax25_validate(const char *);
/*
* Converts the giver string to upper case. It returns a pointer to the
* original string.
*/
-extern char *strupr(char *);
+extern char *strupr(const char *);
/*
* Converts the giver string to lower case. It returns a pointer to the
* original string.
*/
-extern char *strlwr(char *);
+extern char *strlwr(const char *);
#ifdef __cplusplus
}