summaryrefslogtreecommitdiff
path: root/dix/privates.c
diff options
context:
space:
mode:
Diffstat (limited to 'dix/privates.c')
-rw-r--r--dix/privates.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dix/privates.c b/dix/privates.c
index 01686637c..62309d769 100644
--- a/dix/privates.c
+++ b/dix/privates.c
@@ -48,9 +48,7 @@ from The Open Group.
* OF THIS SOFTWARE.
*/
-#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
-#endif
#include <stddef.h>
#include "windowstr.h"
@@ -413,7 +411,7 @@ dixRegisterScreenPrivateKey(DevScreenPrivateKey screenKey, ScreenPtr pScreen,
assert(key->type == type);
return TRUE;
}
- key = calloc(sizeof(DevPrivateKeyRec), 1);
+ key = calloc(1, sizeof(DevPrivateKeyRec));
if (!key)
return FALSE;
if (!dixRegisterPrivateKey(key, type, size)) {