Updates for disk watch
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user