diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-24 11:51:12 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-24 11:51:12 +0100 |
commit | 8e3274f153f89ecf1611fa8468d2d7dbe596a23f (patch) | |
tree | d53ed483e4714599826dab45a82574b9a5be2a11 /tests/service | |
parent | 2f0a989a9ebd8d93fdcaf9a8530fea94877f607f (diff) | |
download | wolfbones-8e3274f153f89ecf1611fa8468d2d7dbe596a23f.tar.gz wolfbones-8e3274f153f89ecf1611fa8468d2d7dbe596a23f.tar.bz2 |
added strlcpy and strlcat (safe BSD C functions)
Diffstat (limited to 'tests/service')
-rw-r--r-- | tests/service/testservice.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/service/testservice.c b/tests/service/testservice.c index 7efa312..76b39b2 100644 --- a/tests/service/testservice.c +++ b/tests/service/testservice.c @@ -13,33 +13,6 @@ #define WOLF_MSG_TESTSERVICE_CANT_OPEN_SCM WOLF_MSG_TESTSERVICE_BASE+1 #define WOLF_MSG_TESTSERVICE_REGISTERING_SERVICE WOLF_MSG_TESTSERVICE_BASE+2 -/* TODO: log with GetLastErrror(), FormatStr(), should be a wrapper in wolf/log, - * the same we should also do for strerror_r - */ -static void wolf_log_win32( wolf_log_level_t level, int category_id, int message_id, const char *format, ... ) { - DWORD last_error = GetLastError( ); - LPVOID buf; - DWORD buf_size; - DWORD res; - - res = FormatMessage( - FORMAT_MESSAGE_ALLOCATE_BUFFER | - FORMAT_MESSAGE_FROM_SYSTEM, - NULL, /* message is from system */ - last_error, /* there is a message with that id */ - 0, /* default language preference */ - (LPTSTR)&buf, /* buffer allocated internally with LocalAlloc */ - 0, /* minimum allocation size */ - NULL ); /* no arguments */ - } - - if( res != 0 ) { - - } - - wolf_log( -} - static void wolf_service_register( void ) { SC_HANDLE scm; |