From 5aca383d4f9d78add6c17cddcbced6bf1beb3ce0 Mon Sep 17 00:00:00 2001 From: Lomanic Date: Sun, 31 May 2020 20:14:27 +0200 Subject: [PATCH] [disk][darwin][cgo] Rename C files dependencies to more descriptive names --- disk/disk_darwin_cgo.go | 2 +- disk/{disk_darwin.c => iostat_darwin.c} | 2 +- disk/{disk_darwin.h => iostat_darwin.h} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename disk/{disk_darwin.c => iostat_darwin.c} (99%) rename disk/{disk_darwin.h => iostat_darwin.h} (100%) diff --git a/disk/disk_darwin_cgo.go b/disk/disk_darwin_cgo.go index 623c5fd..8a1848e 100644 --- a/disk/disk_darwin_cgo.go +++ b/disk/disk_darwin_cgo.go @@ -7,7 +7,7 @@ package disk #cgo LDFLAGS: -framework CoreFoundation -framework IOKit #include #include -#include "disk_darwin.h" +#include "iostat_darwin.h" */ import "C" diff --git a/disk/disk_darwin.c b/disk/iostat_darwin.c similarity index 99% rename from disk/disk_darwin.c rename to disk/iostat_darwin.c index 198d3d1..9619c6f 100644 --- a/disk/disk_darwin.c +++ b/disk/iostat_darwin.c @@ -1,7 +1,7 @@ // https://github.com/lufia/iostat/blob/9f7362b77ad333b26c01c99de52a11bdb650ded2/iostat_darwin.c #include #include -#include "disk_darwin.h" +#include "iostat_darwin.h" #define IOKIT 1 /* to get io_name_t in device_types.h */ diff --git a/disk/disk_darwin.h b/disk/iostat_darwin.h similarity index 100% rename from disk/disk_darwin.h rename to disk/iostat_darwin.h