summaryrefslogtreecommitdiff
path: root/timer.h
blob: 68809a68d44227f44aa530d41c09dfc3470380d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
#ifndef TIMER_H
#define TIMER_H

#include <sys/time.h>

extern void set_itimer_interval_value(struct itimerval *itimer, unsigned long sec,
				      unsigned long usec);

extern int get_user_hz(void);

#endif /* TIMER_H */
>mode:
authorDavid Howells <dhowells@redhat.com>2012-10-04 14:21:23 +0100
committerRusty Russell <rusty@rustcorp.com.au>2012-10-10 20:06:39 +1030
commitdbadc17683e6c673a69b236c0f041b931cc55c42 (patch)
treeec29aabfa428ca2c06caba94595b8c5d51a687e7 /lib
parent2f1c4fef103ef914e266588af263fb42b502b347 (diff)
X.509: Fix indefinite length element skip error handling
asn1_find_indefinite_length() returns an error indicator of -1, which the caller asn1_ber_decoder() places in a size_t (which is usually unsigned) and then checks to see whether it is less than 0 (which it can't be). This can lead to the following warning: lib/asn1_decoder.c:320 asn1_ber_decoder() warn: unsigned 'len' is never less than zero. Instead, asn1_find_indefinite_length() update the caller's idea of the data cursor and length separately from returning the error code. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib')