hurd: Fix shmid_ds's shm_segsz field type
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 2 Jun 2018 19:52:43 +0000 (21:52 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 2 Jun 2018 19:52:43 +0000 (21:52 +0200)
* bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
int.
* sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.

ChangeLog
bits/shm.h
sysdeps/gnu/bits/shm.h

index d9b1ea3..2c5c490 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
+       int.
+       * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
+
 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
 
        * benchtests/scripts/compare_string.py: (process_results) Catch
index 8e80be1..b739090 100644 (file)
@@ -44,7 +44,7 @@ typedef unsigned short int shmatt_t;
 struct shmid_ds
   {
     struct ipc_perm shm_perm;          /* operation permission struct */
-    int shm_segsz;                     /* size of segment in bytes */
+    size_t shm_segsz;                  /* size of segment in bytes */
     __time_t shm_atime;                        /* time of last shmat() */
     __time_t shm_dtime;                        /* time of last shmdt() */
     __time_t shm_ctime;                        /* time of last change by shmctl() */
index eef6729..895c49b 100644 (file)
@@ -49,7 +49,7 @@ typedef unsigned short int shmatt_t;
 struct shmid_ds
   {
     struct ipc_perm shm_perm;          /* operation permission struct */
-    int shm_segsz;                     /* size of segment in bytes */
+    size_t shm_segsz;                  /* size of segment in bytes */
     __time_t shm_atime;                        /* time of last shmat() */
     __time_t shm_dtime;                        /* time of last shmdt() */
     __time_t shm_ctime;                        /* time of last change by shmctl() */