summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--freebsd-compat.h6
-rw-r--r--mkfs_msdos.c5
2 files changed, 0 insertions, 11 deletions
diff --git a/freebsd-compat.h b/freebsd-compat.h
index 5e39c5a..1fdbafe 100644
--- a/freebsd-compat.h
+++ b/freebsd-compat.h
@@ -14,12 +14,6 @@
// This is used as the size of the write buffer of sectors.
#define MAXPHYS (1024 * 1024)
-//#define static_assert _Static_assert
-
-// TODO: do we actually want this, or should we live without?
-#define SIGINFO SIGUSR2
-
-
// On glibc, these headers use `__unused` as an identifier, so drag them in
// first.
#include <sys/stat.h>
diff --git a/mkfs_msdos.c b/mkfs_msdos.c
index 667df47..08c435b 100644
--- a/mkfs_msdos.c
+++ b/mkfs_msdos.c
@@ -653,11 +653,6 @@ mkfs_msdos(const char *fname, const char *dtype, const struct msdos_options *op)
}
#endif
-#if defined(__linux__)
- if (ioctl(fd, BLKBSZSET, &bpb.bpbBytesPerSec))
- printf("BLKBSZSET to %u failed\n", bpb.bpbBytesPerSec);
-#endif
-
for (lsn = 0; lsn < dir + (fat == 32 ? bpb.bpbSecPerClust : rds); lsn++) {
if (got_siginfo) {
fprintf(stderr,"%s: writing sector %u of %u (%u%%)\n",