diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-07-12 21:11:10 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-07-12 21:11:10 +0000 |
commit | 49ce3e5160a9576e797bf87cef012b09d1c54ecb (patch) | |
tree | 9b8e476de272cfd92bb3d857aa3c6eef273140b7 /docs/examples/synctime.c | |
parent | 4a728747e6f8845e500910e397dfc99aaf4a7984 (diff) | |
download | gnurl-49ce3e5160a9576e797bf87cef012b09d1c54ecb.tar.gz gnurl-49ce3e5160a9576e797bf87cef012b09d1c54ecb.tar.bz2 gnurl-49ce3e5160a9576e797bf87cef012b09d1c54ecb.zip |
Fixed some compile warnings and errors and improved portability in the
examples.
Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers
any longer.
Diffstat (limited to 'docs/examples/synctime.c')
-rw-r--r-- | docs/examples/synctime.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/examples/synctime.c b/docs/examples/synctime.c index cd8d0805d..2d5a8e51e 100644 --- a/docs/examples/synctime.c +++ b/docs/examples/synctime.c @@ -87,7 +87,7 @@ typedef struct char timeserver[MAX_STRING1]; } conf_t; -char DefaultTimeServer[4][MAX_STRING1] = +const char DefaultTimeServer[4][MAX_STRING1] = { "http://nist.time.gov/timezone.cgi?UTC/s/0", "http://www.google.com/", @@ -95,9 +95,9 @@ char DefaultTimeServer[4][MAX_STRING1] = "http://www.worldtime.com/cgi-bin/wt.cgi" }; -char *DayStr[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; -char *MthStr[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", - "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; +const char *DayStr[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; +const char *MthStr[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", + "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; int ShowAllHeader; int AutoSyncTime; |