aboutsummaryrefslogtreecommitdiffstats
path: root/package/button-hotplug/src/button-hotplug.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-01-26 11:34:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-01-26 11:34:12 +0000
commit2b0120005706144a07201e3bd92e04c84111bdf1 (patch)
tree800c2a206573e509447c063788dfdfbde99eee8d /package/button-hotplug/src/button-hotplug.c
parentf7f7771d0cbebd4c19f136c3d1446459bd586302 (diff)
downloadupstream-2b0120005706144a07201e3bd92e04c84111bdf1.tar.gz
upstream-2b0120005706144a07201e3bd92e04c84111bdf1.tar.bz2
upstream-2b0120005706144a07201e3bd92e04c84111bdf1.zip
iw: Fix data types for iw survey channel time
The channel times are unsigned 64 bit values, so we shouldn't print them as signed values. Patch from: kentarou matsuyama <matsuyama@thinktube.com> SVN-Revision: 25110
Diffstat (limited to 'package/button-hotplug/src/button-hotplug.c')
0 files changed, 0 insertions, 0 deletions
t */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef _ERR_H
#define _ERR_H

#include <errno.h>

/*
 * Kernel pointers have redundant information, so we can use a
 * scheme where we can return either an error code or a dentry
 * pointer with the same return value.
 *
 * This should be a per-architecture thing, to allow different
 * error and pointer decisions.
 */
#define IS_ERR_VALUE(x) ((x) > (unsigned long)-1000L)

static inline void *ERR_PTR(long error)
{
	return (void *) error;
}

static inline long PTR_ERR(const void *ptr)
{
	return (long) ptr;
}

static inline long IS_ERR(const void *ptr)
{
	return IS_ERR_VALUE((unsigned long)ptr);
}

#endif /* _LINUX_ERR_H */