diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-11-27 22:34:57 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-11-30 16:25:22 -0800 |
commit | 8f42b2b69387b006bfcd373c3d023ebea9035db2 (patch) | |
tree | b44db74079f3de6fd514f16b05fe3e1c5d1c9e49 /include | |
parent | 685286b17d30335d799a9da11914943e466ea955 (diff) |
Simplify Error() - don't allocate temporary copy of error string
Doesn't seem to be any reason to just not pass the error string
as another argument directly to LogVWrite()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/os.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/os.h b/include/os.h index e882a0cf6..566514d4a 100644 --- a/include/os.h +++ b/include/os.h @@ -526,7 +526,7 @@ extern _X_EXPORT void FatalError(const char *f, ...) _X_ATTRIBUTE_PRINTF(1,2) _X extern _X_EXPORT void VErrorF(const char *f, va_list args); extern _X_EXPORT void ErrorF(const char *f, ...) _X_ATTRIBUTE_PRINTF(1,2); -extern _X_EXPORT void Error(char *str); +extern _X_EXPORT void Error(const char *str); extern _X_EXPORT void LogPrintMarkers(void); extern _X_EXPORT void xorg_backtrace(void); |