fixed problem with snprintf.c and mkproto
authorAndrew Tridgell <tridge@samba.org>
Wed, 28 Oct 1998 12:04:34 +0000 (12:04 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 28 Oct 1998 12:04:34 +0000 (12:04 +0000)
source/include/proto.h
source/lib/snprintf.c

index 1b81bb20389fb45dba3736d7c00de19c36a6667e..1af68b86d1433f99e4bcfe643313abe37f1d97e7 100644 (file)
@@ -84,6 +84,12 @@ void force_check_log_size( void );
 void dbgflush( void );
 BOOL dbghdr( int level, char *file, char *func, int line );
 
+/*The following definitions come from  lib/debugparse.c  */
+
+char *dbg_token2string( dbg_Token tok );
+void dbg_test( void );
+int main( void );
+
 /*The following definitions come from  lib/fault.c  */
 
 void fault_setup(void (*fn)(void *));
@@ -162,6 +168,9 @@ int vslprintf(char *str, int n, char *format, va_list ap);
 
 int smbrun(char *cmd,char *outfile,BOOL shared);
 
+/*The following definitions come from  lib/snprintf.c  */
+
+
 /*The following definitions come from  lib/system.c  */
 
 int sys_select(int maxfd, fd_set *fds,struct timeval *tval);
index d51627a1e326ab8e5760853c252b3b099d8a3a78..467f9142440ae638a79a986ebc726b8f0db847c2 100644 (file)
@@ -707,7 +707,7 @@ static void dopr_outch (char *buffer, size_t *currlen, size_t maxlen, char c)
 #endif /* !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) */
 
 #ifndef HAVE_VSNPRINTF
-int vsnprintf (char *str, size_t count, const char *fmt, va_list args)
+ int vsnprintf (char *str, size_t count, const char *fmt, va_list args)
 {
   str[0] = 0;
   dopr(str, count, fmt, args);
@@ -718,9 +718,9 @@ int vsnprintf (char *str, size_t count, const char *fmt, va_list args)
 #ifndef HAVE_SNPRINTF
 /* VARARGS3 */
 #ifdef HAVE_STDARGS
-int snprintf (char *str,size_t count,const char *fmt,...)
+ int snprintf (char *str,size_t count,const char *fmt,...)
 #else
-int snprintf (va_alist) va_dcl
+ int snprintf (va_alist) va_dcl
 #endif
 {
 #ifndef HAVE_STDARGS
@@ -749,7 +749,7 @@ int snprintf (va_alist) va_dcl
 #ifndef LONG_STRING
 #define LONG_STRING 1024
 #endif
-int main (void)
+ int main (void)
 {
   char buf1[LONG_STRING];
   char buf2[LONG_STRING];