Mercurial > hg > octave-lyh > gnulib-hg
changeset 492:33a21db1201a
(read_filesystem_list): Cast -1 to dev_t before assignment.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Thu, 05 Oct 1995 14:14:45 +0000 |
parents | 6e7f13b83325 |
children | 72bbac9956e0 |
files | lib/mountlist.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -225,7 +225,7 @@ me->me_dev = xatoi (devopt + 4); } else - me->me_dev = -1; /* Magic; means not known yet. */ + me->me_dev = (dev_t) -1; /* Magic; means not known yet. */ me->me_next = NULL; /* Add to the linked list. */ @@ -256,7 +256,7 @@ #else me->me_type = fstype_to_string (fsp->f_type); #endif - me->me_dev = -1; /* Magic; means not known yet. */ + me->me_dev = (dev_t) -1; /* Magic; means not known yet. */ me->me_next = NULL; /* Add to the linked list. */ @@ -317,7 +317,7 @@ me->me_devname = xstrdup (stats[counter].f_mntfromname); me->me_mountdir = xstrdup (stats[counter].f_mntonname); me->me_type = mnt_names[stats[counter].f_type]; - me->me_dev = -1; /* Magic; means not known yet. */ + me->me_dev = (dev_t) -1; /* Magic; means not known yet. */ me->me_next = NULL; /* Add to the linked list. */ @@ -350,7 +350,7 @@ strcpy (me->me_devname + 5, mnt.mt_dev); #endif me->me_mountdir = xstrdup (mnt.mt_filsys); - me->me_dev = -1; /* Magic; means not known yet. */ + me->me_dev = (dev_t) -1; /* Magic; means not known yet. */ me->me_type = ""; #ifdef GETFSTYP /* SVR3. */ if (need_fs_type) @@ -384,7 +384,7 @@ me->me_devname = xstrdup ( (*ent)->mt_resource); me->me_mountdir = xstrdup( (*ent)->mt_directory); me->me_type = xstrdup ((*ent)->mt_fstype); - me->me_dev = -1; /* Magic; means not known yet. */ + me->me_dev = (dev_t) -1; /* Magic; means not known yet. */ me->me_next = NULL; /* Add to the linked list. */ @@ -412,7 +412,7 @@ me->me_devname = xstrdup (mnt.mnt_special); me->me_mountdir = xstrdup (mnt.mnt_mountp); me->me_type = xstrdup (mnt.mnt_fstype); - me->me_dev = -1; /* Magic; means not known yet. */ + me->me_dev = (dev_t) -1; /* Magic; means not known yet. */ me->me_next = NULL; /* Add to the linked list. */ @@ -464,7 +464,7 @@ } me->me_mountdir = xstrdup (thisent + vmp->vmt_data[VMT_STUB].vmt_off); me->me_type = xstrdup (fstype_to_string (vmp->vmt_gfstype)); - me->me_dev = -1; /* vmt_fsid might be the info we want. */ + me->me_dev = (dev_t) -1; /* vmt_fsid might be the info we want. */ me->me_next = NULL; /* Add to the linked list. */