Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix const warnings in stoken code with NLS disabled
The gettext() function will return a non-const 'char *' pointer, and we should have a cast in the dummy version of the _() macro to do the same. Otherwise, we get: ../auth.c: In function 'prepare_stoken': ../auth.c:907:15: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] ../auth.c:915:14: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] ../auth.c:922:14: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] ../auth.c:929:14: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Based on a patch from Kevin Cernekee. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
- Loading branch information