projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ifupdown: simple code shrink
[oweals/busybox.git]
/
networking
/
ntpd_simple.c
diff --git
a/networking/ntpd_simple.c
b/networking/ntpd_simple.c
index 5e48306c7f9472fc3e7601e2d3acfa12e989bdcd..1b7c66b8461acf64373cec0e0742e6c477650709 100644
(file)
--- a/
networking/ntpd_simple.c
+++ b/
networking/ntpd_simple.c
@@
-3,10
+3,11
@@
*
* Author: Adam Tkac <vonsch@gmail.com>
*
*
* Author: Adam Tkac <vonsch@gmail.com>
*
- * Licensed under GPLv2, see file LICENSE in this
tarball for details
.
+ * Licensed under GPLv2, see file LICENSE in this
source tree
.
*/
#include "libbb.h"
#include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */
*/
#include "libbb.h"
#include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */
+#include <sys/resource.h> /* setpriority */
#ifndef IPTOS_LOWDELAY
# define IPTOS_LOWDELAY 0x10
#endif
#ifndef IPTOS_LOWDELAY
# define IPTOS_LOWDELAY 0x10
#endif
@@
-870,7
+871,7
@@
static NOINLINE void ntp_init(char **argv)
int prec = 0;
int b;
# if 0
int prec = 0;
int b;
# if 0
- struct timespec tp;
+ struct timespec tp;
/* We can use sys_clock_getres but assuming 10ms tick should be fine */
clock_getres(CLOCK_REALTIME, &tp);
tp.tv_sec = 0;
/* We can use sys_clock_getres but assuming 10ms tick should be fine */
clock_getres(CLOCK_REALTIME, &tp);
tp.tv_sec = 0;