mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 19:04:50 +00:00
(!1687) xfree86: unexport xf86SetVerbosity() and xf86SetLogVerbosity()
These aren't used by any modules/drivers, so no need to keep them exported. Also drop the return value, which isn't used by any caller. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -68,4 +68,7 @@ ConfigStatus xf86HandleConfigFile(Bool);
|
||||
Bool xf86AutoConfig(void);
|
||||
GDevPtr autoConfigDevice(GDevPtr preconf_device);
|
||||
|
||||
void xf86SetVerbosity(int verb);
|
||||
void xf86SetLogVerbosity(int verb);
|
||||
|
||||
#endif /* _xf86_config_h */
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
#include "xf86DDC.h"
|
||||
#include "xf86Xinput.h"
|
||||
#include "xf86InPriv.h"
|
||||
#include "xf86Config.h"
|
||||
#include "mivalidate.h"
|
||||
|
||||
/* For xf86GetClocks */
|
||||
|
||||
@@ -864,24 +864,18 @@ OsVendorFatalError(const char *f, va_list args)
|
||||
ErrorFSigSafe("\n");
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
xf86SetVerbosity(int verb)
|
||||
{
|
||||
int save = xf86Verbose;
|
||||
|
||||
xf86Verbose = verb;
|
||||
LogSetParameter(XLOG_VERBOSITY, verb);
|
||||
return save;
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
xf86SetLogVerbosity(int verb)
|
||||
{
|
||||
int save = xf86LogVerbose;
|
||||
|
||||
xf86LogVerbose = verb;
|
||||
LogSetParameter(XLOG_FILE_VERBOSITY, verb);
|
||||
return save;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@@ -151,10 +151,7 @@ xf86CloseLog(enum ExitCode error);
|
||||
/* xf86Init.c */
|
||||
extern _X_EXPORT Bool
|
||||
xf86LoadModules(const char **list, void **optlist);
|
||||
extern _X_EXPORT int
|
||||
xf86SetVerbosity(int verb);
|
||||
extern _X_EXPORT int
|
||||
xf86SetLogVerbosity(int verb);
|
||||
|
||||
extern _X_EXPORT Bool
|
||||
xf86CallDriverProbe(struct _DriverRec *drv, Bool detect_only);
|
||||
extern _X_EXPORT Bool
|
||||
|
||||
Reference in New Issue
Block a user