projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix warning
[oweals/busybox.git]
/
date.c
diff --git
a/date.c
b/date.c
index 21d31bb2507ef93eae0449224e5f31eaa142e0e4..4b2f66add384cfc87b32eaf3d3bbb0922547df26 100644
(file)
--- a/
date.c
+++ b/
date.c
@@
-20,11
+20,6
@@
*
*/
*
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_invalid_date
-#define bb_need_memory_exhausted
-#include "messages.c"
#include <stdlib.h>
#include <errno.h>
#include <sys/time.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/time.h>
@@
-33,6
+28,11
@@
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_invalid_date
+#define bb_need_memory_exhausted
+#include "messages.c"
/* This 'date' command supports only 2 time setting formats,
/* This 'date' command supports only 2 time setting formats,
@@
-46,7
+46,7
@@
/* Default input handling to save suprising some people */
/* Default input handling to save suprising some people */
-struct tm *date_conv_time(struct tm *tm_time, const char *t_string)
+st
atic st
ruct tm *date_conv_time(struct tm *tm_time, const char *t_string)
{
int nr;
{
int nr;
@@
-73,7
+73,7
@@
struct tm *date_conv_time(struct tm *tm_time, const char *t_string)
/* The new stuff for LRP */
/* The new stuff for LRP */
-struct tm *date_conv_ftime(struct tm *tm_time, const char *t_string)
+st
atic st
ruct tm *date_conv_ftime(struct tm *tm_time, const char *t_string)
{
struct tm t;
{
struct tm t;