view toys/other/swapoff.c @ 694:786841fdb1e0

Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style. The actual code should be the same afterward, this is just cosmetic refactoring.
author Rob Landley <>
date Tue, 13 Nov 2012 17:14:08 -0600
parents 6df4ccc0acbe
children 57f2a26fa92c
line wrap: on
line source

/* swapoff.c - Disable region for swapping
 * Copyright 2012 Elie De Brauwer <>


config SWAPOFF
  bool "swapoff"
  default y
    usage: swapoff swapregion

    Disable swapping on a given swapregion.

#include "toys.h"

void swapoff_main(void)
  if (swapoff(toys.optargs[0])) perror_exit("failed to remove swaparea");