/[monit]/monit/device/sysdep_DARWIN.c
ViewVC logotype

Diff of /monit/device/sysdep_DARWIN.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by martinp, Sun Jul 6 22:57:01 2003 UTC revision 1.4 by martinp, Mon Jul 7 06:40:46 2003 UTC
# Line 53  Line 53 
53   * In the case of success, mountpoint is stored in device information   * In the case of success, mountpoint is stored in device information
54   * structure for later use.   * structure for later use.
55   *   *
56   * @param devinfo Information structure where resulting data will be stored   * @param devinfo  Information structure where resulting data will be stored
57   * @param object  Identifies block special device   * @param blockdev Identifies block special device
58   * @return        NULL in the case of failure otherwise mountpoint   * @return         NULL in the case of failure otherwise mountpoint
59   */   */
60  char *DeviceInfo_MountPoint_sysdep(DeviceInfo_T devinfo, char *object) {  char *DeviceInfo_MountPoint_sysdep(DeviceInfo_T devinfo, char *blockdev) {
61    
62    struct statfs usage;    struct statfs usage;
63    
64    ASSERT(devinfo);    ASSERT(devinfo);
65    ASSERT(object);    ASSERT(blockdev);
66    
67    if(statfs(object, &usage) != 0) {    if(statfs(blockdev, &usage) != 0) {
68      log("%s: Error getting mountpoint for device '%s' -- %s\n",      log("%s: Error getting mountpoint for device '%s' -- %s\n",
69          prog, object, STRERROR);          prog, blockdev, STRERROR);
70      return NULL;      return NULL;
71    }    }
72    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26