mirror of
https://frontier.innolan.net/rainlance/amiga-ntimed.git
synced 2025-11-20 03:33:44 +00:00
Updated format and help text
This commit is contained in:
10
main_amiga.c
10
main_amiga.c
@ -79,7 +79,7 @@
|
||||
#undef PARAM_TABLE_NAME
|
||||
#undef PARAM_CLIENT
|
||||
|
||||
const char *vers = "\0$VER: ntimed 1.0";
|
||||
const char *vers = "\0$VER: ntimed 1.0a";
|
||||
|
||||
#define ARG_TEMPLATE "P=PARAM/K,T=TRACEFILE/K,Z=TIMEZONE/K,SERVERS/M,SYNC/S,SAVE/S,QUIET/S"
|
||||
|
||||
@ -151,7 +151,7 @@ int main(int argc, char **argv)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if(!(UtilityBase = (struct Library *)OpenLibrary((CONST_STRPTR)"utility.library",33))) {
|
||||
if(!(UtilityBase = (struct Library *)OpenLibrary((CONST_STRPTR)"utility.library", 33))) {
|
||||
PrintFault(IoErr(), (CONST_STRPTR)argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
@ -170,7 +170,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
#ifdef AROS
|
||||
if(!(SocketBase = OpenLibrary((CONST_STRPTR)"bsdsocket.library", 4 ))) {
|
||||
if(!(SocketBase = OpenLibrary((CONST_STRPTR)"bsdsocket.library", 4))) {
|
||||
PrintFault(IoErr(), (CONST_STRPTR)argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
@ -232,7 +232,7 @@ int main(int argc, char **argv)
|
||||
np->combiner = CD_AddSource(cd, np->hostname, np->ip);
|
||||
}
|
||||
|
||||
Put(NULL, OCX_DEBUG, "# Timezone set to %s (UTC%s%.2f) %s\n",
|
||||
Put(NULL, OCX_DEBUG, "Timezone set to %s (UTC%s%.2f) %s\n",
|
||||
tza[tzid].abbr,
|
||||
tza[tzid].offset < 0.0 ? "-" : "+",
|
||||
fabs(tza[tzid].offset),
|
||||
@ -268,7 +268,7 @@ static void clean_exit()
|
||||
{
|
||||
if (saveclock) {
|
||||
Time_Amiga_Save();
|
||||
Put(NULL, OCX_TRACE, "# Saved time to hardware clock\n");
|
||||
Put(NULL, OCX_DEBUG, "Saved time to hardware clock\n");
|
||||
}
|
||||
|
||||
// Free peer set && peers && NTP filters
|
||||
|
||||
Reference in New Issue
Block a user