summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-11-27 15:32:04 +0200
committerToomas Soome <tsoome@me.com>2020-02-20 19:12:11 +0200
commitf34e64d88f694155255ac1c93990904dbfa28af3 (patch)
treef2e709742eabaf6eaaa34f5465121dcfe901f1b2
parentfd82d5a2825fb57d2940ba210af4af02e09883d3 (diff)
downloadillumos-joyent-f34e64d88f694155255ac1c93990904dbfa28af3.tar.gz
12125 smbsrv: passing argument 1 to restrict-qualified parameter aliases with argument 4
Reviewed by: C Fraire <cfraire@me.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
-rw-r--r--usr/src/cmd/smbsrv/smbd/smbd_spool.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/src/cmd/smbsrv/smbd/smbd_spool.c b/usr/src/cmd/smbsrv/smbd/smbd_spool.c
index aa040c4150..a0e832525e 100644
--- a/usr/src/cmd/smbsrv/smbd/smbd_spool.c
+++ b/usr/src/cmd/smbsrv/smbd/smbd_spool.c
@@ -203,7 +203,7 @@ smbd_spool_copyfile(smb_inaddr_t *ipaddr, char *username, char *path,
char new_jobname[SMBD_PJOBLEN];
smbd_printjob_t pjob;
char clientname[INET6_ADDRSTRLEN];
- struct stat sbuf;
+ struct stat sbuf;
int rc = 1;
if (stat(path, &sbuf)) {
@@ -424,7 +424,7 @@ smbd_load_printers(void)
(void) pthread_attr_init(&attr);
(void) pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
- rc = pthread_create(&tid, &attr, smbd_share_printers, &tid);
+ rc = pthread_create(&tid, &attr, smbd_share_printers, NULL);
(void) pthread_attr_destroy(&attr);
if (rc != 0)
@@ -435,9 +435,8 @@ smbd_load_printers(void)
/*
* All print shares use the path from print$.
*/
-/*ARGSUSED*/
static void *
-smbd_share_printers(void *arg)
+smbd_share_printers(void *arg __unused)
{
cups_dest_t *dests;
cups_dest_t *dest;
@@ -558,4 +557,4 @@ smbd_spool_stop(void)
{
}
-#endif /* HAVE_CUPS */
+#endif /* HAVE_CUPS */