Changeset 738 in MondoRescue for branches/stable/mondo/mondo/mondorestore


Ignore:
Timestamp:
Aug 3, 2006, 11:17:09 PM (18 years ago)
Author:
andree
Message:

Fixed compiler warnings on amd64 (and likely 64bit in general):

  • "cast to pointer from integer of different size" by making relevant variables long rather than int which gives 32bit on i386 and 64bit on amd64;
  • "cast from pointer to integer of different size" by casting to long rather than int for same reasons.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/mondorestore/mondo-rstr-newt.c

    r705 r738  
    928928    static int lines_in_flist_window = 0;
    929929    static int depth = 0;
    930     int i = 0;
     930
     931    /** long **************************************************************/
     932    long i = 0;
    931933
    932934    /** structures *******************************************************/
     
    13731375        }
    13741376    }
    1375     newtListboxSetEntry(listbox, (int) keylist[currline],
     1377    newtListboxSetEntry(listbox, (long) keylist[currline],
    13761378                        mountlist_entry_to_string(mountlist, currline));
    13771379    /* if new /dev/md RAID device then do funky stuff */
     
    24952497{
    24962498
    2497     /** int *************************************************************/
    2498     int i = 0;
     2499    /** long **************************************************************/
     2500    long i = 0;
    24992501
    25002502    assert(disklist != NULL);
     
    25272529{
    25282530
    2529     /** int **************************************************************/
    2530     int i = 0;
     2531    /** long **************************************************************/
     2532    long i = 0;
    25312533
    25322534    assert(mountlist != NULL);
     
    25622564{
    25632565
    2564     /** int **************************************************************/
    2565     int i = 0;
     2566    /** long *************************************************************/
     2567    long i = 0;
    25662568
    25672569    /** buffers **********************************************************/
     
    25962598                void *keylist[], newtComponent listbox)
    25972599{
    2598     /** int *************************************************************/
    2599     int i = 0;
     2600    /** long ************************************************************/
     2601    long i = 0;
    26002602
    26012603    /** buffers *********************************************************/
Note: See TracChangeset for help on using the changeset viewer.