use double for dummy arrays to ensure alignment
authorAndrew Tridgell <tridge@samba.org>
Wed, 7 Oct 1998 10:44:12 +0000 (10:44 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 7 Oct 1998 10:44:12 +0000 (10:44 +0000)
(This used to be commit d651229ef3eb06035d015770c5ea018f33234ebc)

source3/smbwrapper/wrapped.c

index 129e9afe8423cde9fd1069f59ba031a4f1720926..b8943eafaa1981401d7bef025f8b6d6fd8eebae0 100644 (file)
 #if HAVE___FXSTAT
  int __fxstat(int vers, int fd, void *st)
 {
-       long xx[32];
+       double xx[32];
        int ret;
 
        if (smbw_fd(fd)) {
 #if HAVE___XSTAT
  int __xstat(int vers, char *name, void *st)
 {
-       long xx[32];
+       double xx[32];
        int ret;
 
        if (smbw_path(name)) {
 #if HAVE___LXSTAT
  int __lxstat(int vers, char *name, void *st)
 {
-       long xx[32];
+       double xx[32];
        int ret;
 
        if (smbw_path(name)) {
   int stat64(char *name, void *st64)
 {
        if (smbw_path(name)) {
-               long xx[32];
+               double xx[32];
                int ret = stat(name, xx);
                stat64_convert(xx, st64);
                return ret;
   int fstat64(int fd, void *st64)
 {
        if (smbw_fd(fd)) {
-               long xx[32];
+               double xx[32];
                int ret = fstat(fd, xx);
                stat64_convert(xx, st64);
                return ret;
   int lstat64(char *name, void *st64)
 {
        if (smbw_path(name)) {
-               long xx[32];
+               double xx[32];
                int ret = lstat(name, xx);
                stat64_convert(xx, st64);
                return ret;
  void *readdir64(void *dir)
 {
        if (smbw_dirp(dir)) {
-               static long xx[70];
+               static double xx[70];
                void *d;
                d = (void *)readdir(dir);
                if (!d) return NULL;