Changeset 2547 in MondoRescue for branches/2.2.9/mondo


Ignore:
Timestamp:
Jan 21, 2010, 9:11:14 PM (14 years ago)
Author:
Bruno Cornec
Message:
  • Suppress unused mode_of_file function
Location:
branches/2.2.9/mondo/src/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-files-EXT.h

    r2380 r2547  
    4848extern int make_grub_install_scriptlet(char *outfile);
    4949extern int read_one_liner_data_file(char *fname, char *contents);
    50 extern int mode_of_file(char *fname);
  • branches/2.2.9/mondo/src/common/libmondo-files.c

    r2380 r2547  
    13341334
    13351335
    1336 int mode_of_file(char *fname)
    1337 {
    1338     struct stat buf;
    1339 
    1340     if (lstat(fname, &buf)) {
    1341         return (-1);
    1342     }                           // error
    1343     else {
    1344         return (buf.st_mode);
    1345     }
    1346 }
    1347 
    1348 
    1349 
    1350 
    13511336/**
    13521337 * Create a small script that mounts /boot, calls @c grub-install, and syncs the disks.
  • branches/2.2.9/mondo/src/common/libmondo-files.h

    r2380 r2547  
    4949
    5050int read_one_liner_data_file(char *fname, char *contents);
    51 int mode_of_file(char *fname);
Note: See TracChangeset for help on using the changeset viewer.