diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-23 21:33:43 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-23 21:33:43 +0000 |
commit | cefcc0426613cc761373e785980c87c77f8a8cb5 (patch) | |
tree | e64653268bcb93fc50bf23d22e38799c5bb31adc /src/htsalias.c | |
parent | 6ba50a2001bcfa1b467f69985a002fc064d8c807 (diff) |
"const correctness" cleanup
added the following default flags:
-Wformat
-Wformat-security
-Wmultichar
-Wwrite-strings
fixed several other warnings
Diffstat (limited to 'src/htsalias.c')
-rw-r--r-- | src/htsalias.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htsalias.c b/src/htsalias.c index 19b7857..b1a7962 100644 --- a/src/htsalias.c +++ b/src/htsalias.c @@ -560,8 +560,8 @@ int optinclude_file(const char *name, int *argc, char **argv, char *x_argvblk, /* Get home directory, '.' if failed */ /* example: /home/smith */ -char *hts_gethome(void) { - char *home = getenv("HOME"); +const char *hts_gethome(void) { + const char *home = getenv("HOME"); if (home) return home; |