Patch from metze and me that adds dummy smb_register_*() functions so
[samba.git] / source / client / smbspool.c
index 4c90db4114bbabc418cd99ba9a856c7f1039a812..eef663ebfd24fc81a78292e60af5448db4ebddd6 100644 (file)
@@ -24,6 +24,8 @@
 
 #include "includes.h"
 
+#include "module_dummy.h"
+
 /*
  * Globals...
  */
@@ -52,8 +54,8 @@ static int            smb_print(struct cli_state *, char *, FILE *);
   int          copies;         /* Number of copies */
   char         uri[1024],      /* URI */
                *sep,           /* Pointer to separator */
-               *username,      /* Username */
-               *password,      /* Password */
+               *password;      /* Password */
+  const char   *username,      /* Username */
                *server,        /* Server name */
                *printer;       /* Printer name */
   const char   *workgroup;     /* Workgroup */
@@ -205,12 +207,12 @@ static int                smb_print(struct cli_state *, char *, FILE *);
     {
       if (getenv("CLASS") == NULL)
       {
-        perror("ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...");
+        fprintf(stderr, "ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...");
         sleep (60);
       }
       else
       {
-        perror("ERROR: Unable to connect to SAMBA host, trying next printer...");
+        fprintf(stderr, "ERROR: Unable to connect to SAMBA host, trying next printer...");
         return (1);
       }
     }