diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-08 22:37:09 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-08 22:37:09 -0700 |
commit | 84153eee4db318cd897c464e70cb9f8bc8e469f6 (patch) | |
tree | 4fd2e59ce812a76bdcd67a8fedfa98fc2f47fec7 /src/authutil.c | |
parent | 9a74512ffdc1628f1b87d2191439915c63b9104f (diff) |
Mark input arguments to write_string functions as const
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/authutil.c')
-rw-r--r-- | src/authutil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/authutil.c b/src/authutil.c index a8d2a22..4a4af12 100644 --- a/src/authutil.c +++ b/src/authutil.c @@ -53,8 +53,8 @@ static Status read_short (FILE *file, unsigned short *shortp); static Status read_string (FILE *file, char **stringp); static Status read_counted_string (FILE *file, unsigned short *countp, char **stringp); static Status write_short (FILE *file, unsigned short s); -static Status write_string (FILE *file, char *string); -static Status write_counted_string (FILE *file, unsigned short count, char *string); +static Status write_string (FILE *file, const char *string); +static Status write_counted_string (FILE *file, unsigned short count, const char *string); @@ -462,7 +462,7 @@ write_short (FILE *file, unsigned short s) static Status -write_string (FILE *file, char *string) +write_string (FILE *file, const char *string) { size_t count = strlen (string); @@ -480,7 +480,7 @@ write_string (FILE *file, char *string) static Status -write_counted_string (FILE *file, unsigned short count, char *string) +write_counted_string (FILE *file, unsigned short count, const char *string) { if (!write_short (file, count)) return (0); |