Updates for disk watch

This commit is contained in:
Michiel Broek
2004-03-20 19:25:57 +00:00
parent 03cae38992
commit 86071b1159
5 changed files with 180 additions and 102 deletions

View File

@@ -469,13 +469,13 @@ unsigned long sequencer()
* Check enough diskspace.
* return 0=No, 1=Yes, 2=Unknown, 3=Error
*/
int enoughspace(void)
int enoughspace(unsigned long needed)
{
char *buf, *res;
int rc = 3;
buf = calloc(SS_BUFSIZE, sizeof(char));
sprintf(buf, "DSPC:0;");
sprintf(buf, "DSPC:1,%ld;", needed);
if (socket_send(buf) == 0) {
free(buf);

View File

@@ -1992,7 +1992,7 @@ void UserCity(pid_t, char *, char *);
void DoNop(void);
void Nopper(void);
void Altime(int);
int enoughspace(void);
int enoughspace(unsigned long);
unsigned long sequencer(void);
char *printable(char *, int);
char *printablec(char);