Skip to content

Commit 0861bd7

Browse files
committed
Reuse version function from lib.misc.
1 parent 9bd5fa6 commit 0861bd7

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

judge/runguard.cc

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
#include "config.h"
3131

32+
#include "lib.misc.h"
33+
3234
/* Some system/site specific config: VALID_USERS, CHROOT_PREFIX */
3335
#include "runguard-config.h"
3436

@@ -346,17 +348,6 @@ void write_meta(const char *key, const char *format, ...)
346348
va_end(ap);
347349
}
348350

349-
void version(const char *prog, const char *vers)
350-
{
351-
printf("\
352-
%s -- part of DOMjudge version %s\n\
353-
Written by the DOMjudge developers\n\n\
354-
DOMjudge comes with ABSOLUTELY NO WARRANTY. This is free software, and you\n\
355-
are welcome to redistribute it under certain conditions. See the GNU\n\
356-
General Public Licence for details.\n", prog, vers);
357-
exit(0);
358-
}
359-
360351
void usage()
361352
{
362353
printf("\

0 commit comments

Comments
 (0)