diff options
author | jsorg71 <jsorg71> | 2006-09-09 02:11:50 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2006-09-09 02:11:50 +0000 |
commit | 58dc2e0df72c96d2350cfdea405b2ba23d102e5e (patch) | |
tree | cd786b6e80c36213a9e7c13d12ef6357baa51aa0 /Xserver/hw | |
parent | 09a041aeaaea1b28c8a0d496bc9c3a112f11041d (diff) | |
download | xrdp-proprietary-58dc2e0df72c96d2350cfdea405b2ba23d102e5e.tar.gz xrdp-proprietary-58dc2e0df72c96d2350cfdea405b2ba23d102e5e.zip |
added xf86qsort for xorg 6.8.2
Diffstat (limited to 'Xserver/hw')
-rw-r--r-- | Xserver/hw/rdp/rdpmisc.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Xserver/hw/rdp/rdpmisc.c b/Xserver/hw/rdp/rdpmisc.c index 6deed74c..48fafc30 100644 --- a/Xserver/hw/rdp/rdpmisc.c +++ b/Xserver/hw/rdp/rdpmisc.c @@ -685,6 +685,7 @@ xf86sprintf(char* s, const char* format, ...) { int ret; va_list args; + va_start(args, format); ret = vsprintf(s, format, args); va_end(args); @@ -731,14 +732,14 @@ xf86frexp(double x, int* exp) void* xf86memcpy(void* dest, const void* src, xf86size_t n) { - return memcpy(dest,src,(size_t)n); + return memcpy(dest, src, (size_t)n); } /*****************************************************************************/ int xf86memcmp(const void* s1, const void* s2, xf86size_t n) { - return memcmp(s1,s2,(size_t)n); + return memcmp(s1, s2, (size_t)n); } /*****************************************************************************/ @@ -934,6 +935,14 @@ xf86strtok(char* s1, const char* s2) } /*****************************************************************************/ +void +xf86qsort(void* base, xf86size_t nmemb, xf86size_t size, + int (*comp)(const void *, const void *)) +{ + qsort(base, nmemb, size, comp); +} + +/*****************************************************************************/ char* xf86strcat(char* dest, const char* src) { |