use struct units instead of units
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11677 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -39,7 +39,7 @@ RCSID("$Id$");
|
|||||||
#include <parse_units.h>
|
#include <parse_units.h>
|
||||||
#include "parse_bytes.h"
|
#include "parse_bytes.h"
|
||||||
|
|
||||||
static units bytes_units[] = {
|
static struct units bytes_units[] = {
|
||||||
{ "gigabyte", 1024 * 1024 * 1024 },
|
{ "gigabyte", 1024 * 1024 * 1024 },
|
||||||
{ "gbyte", 1024 * 1024 * 1024 },
|
{ "gbyte", 1024 * 1024 * 1024 },
|
||||||
{ "GB", 1024 * 1024 * 1024 },
|
{ "GB", 1024 * 1024 * 1024 },
|
||||||
@@ -52,7 +52,7 @@ static units bytes_units[] = {
|
|||||||
{ NULL, 0 }
|
{ NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static units bytes_short_units[] = {
|
static struct units bytes_short_units[] = {
|
||||||
{ "GB", 1024 * 1024 * 1024 },
|
{ "GB", 1024 * 1024 * 1024 },
|
||||||
{ "MB", 1024 * 1024 },
|
{ "MB", 1024 * 1024 },
|
||||||
{ "KB", 1024 },
|
{ "KB", 1024 },
|
||||||
|
@@ -39,7 +39,7 @@ RCSID("$Id$");
|
|||||||
#include <parse_units.h>
|
#include <parse_units.h>
|
||||||
#include "parse_time.h"
|
#include "parse_time.h"
|
||||||
|
|
||||||
static units time_units[] = {
|
static struct units time_units[] = {
|
||||||
{"year", 365 * 24 * 60 * 60},
|
{"year", 365 * 24 * 60 * 60},
|
||||||
{"month", 30 * 24 * 60 * 60},
|
{"month", 30 * 24 * 60 * 60},
|
||||||
{"week", 7 * 24 * 60 * 60},
|
{"week", 7 * 24 * 60 * 60},
|
||||||
|
Reference in New Issue
Block a user