More formatting updates. Reduced whitespace, looks even better.

This commit is contained in:
William Ferrell committed 2000-03-30 20:43:33 +00:00
1 parent a98c8109a8
commit ddfd41f53e
78 files changed
-590

No files matched your search

-11
View File
@@ -27,7 +27,6 @@
#include <sys/statfs.h>
#endif
#include "../../shared/sockets.h"
#include "main.h"
@@ -36,14 +35,11 @@
FILE *mtab_fd;
typedef struct mounts {
char dev[256], type[64], mpoint[256];
long bsize, blocks, bfree, files, ffree;
} mounts;
static int
get_fs (mounts fs[])
{
@@ -115,7 +111,6 @@ disk_close ()
return 0;
}
///////////////////////////////////////////////////////////////////////////
// Gives disk stats.
//
@@ -143,7 +138,6 @@ disk_screen (int rep, int display)
#define huge long long int
huge size;
if (first) {
first = 0;
@@ -163,7 +157,6 @@ disk_screen (int rep, int display)
sock_send_string (sock, "widget_set D err2 5 3 {Filesystems}\n");
}
// Grab disk stats on first display, and fill "table".
// Get rid of old, unmounted filesystems...
memset (table, 0, sizeof (struct disp) * 256);
@@ -210,14 +203,11 @@ disk_screen (int rep, int display)
}
}
if (!count) {
sock_send_string (sock, "widget_set D err1 1 2 {Error Retrieving}\n");
sock_send_string (sock, "widget_set D err2 1 3 {Filesystem Stats}\n");
return 0;
}
// Display stuff... (show for two seconds, then scroll once per
// second, then hold at the end for two seconds)
sprintf (buffer, "widget_set D f 1 2 %i %i %i %i v 12\n", lcd_wid, lcd_hgt, lcd_wid, count);
@@ -249,7 +239,6 @@ disk_screen (int rep, int display)
sock_send_string (sock, tmp);
}
num_disks = count;
#undef huge