/* opkg_utils.c - the opkg package management system
Steven M. Ayer
-
+
Copyright (C) 2002 Compaq Computer Corporation
This program is free software; you can redistribute it and/or
General Public License for more details.
*/
-#include "includes.h"
-#include <errno.h>
#include <ctype.h>
#include <sys/statvfs.h>
-#include "opkg_utils.h"
-#include "pkg.h"
-#include "pkg_hash.h"
#include "libbb/libbb.h"
-void print_pkg_status(pkg_t * pkg, FILE * file);
-
unsigned long
get_available_kbytes(char * filesystem)
{
return 0;
}
- // Actually ((sfs.f_bavail * sfs.f_frsize) / 1024)
- // and here we try to avoid overflow.
- if (f.f_frsize >= 1024)
+ // Actually ((sfs.f_bavail * sfs.f_frsize) / 1024)
+ // and here we try to avoid overflow.
+ if (f.f_frsize >= 1024)
return (f.f_bavail * (f.f_frsize / 1024));
else if (f.f_frsize > 0)
return f.f_bavail / (1024 / f.f_frsize);
{
const char *end;
- /* remove it from the front */
- while(src &&
+ /* remove it from the front */
+ while(src &&
isspace(*src) &&
*src)
src++;