diff options
author | Jeremy Allison <jra@samba.org> | 2007-10-11 15:36:13 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-10-11 15:36:13 -0700 |
commit | cb5436bcc3b55e0c221fb6b3fa3133f149a64384 (patch) | |
tree | b9dfa7884d428eacacff1484fbe9499f62add189 /source3/printing | |
parent | 58a0a60bd11f5d422c7e39497dc6cdb59e91c9af (diff) | |
download | samba-cb5436bcc3b55e0c221fb6b3fa3133f149a64384.tar.gz samba-cb5436bcc3b55e0c221fb6b3fa3133f149a64384.tar.bz2 samba-cb5436bcc3b55e0c221fb6b3fa3133f149a64384.zip |
Add const to the get_peer_addr() and get_socket_addr()
calls. Use the IPv6 varient for get_peer_addr().
Jeremy.
(This used to be commit baf1f52e34ae2465a7a34be1065da29ed97e7bea)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/print_cups.c | 2 | ||||
-rw-r--r-- | source3/printing/print_iprint.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index 8f1f06e7ef..d95b08c3c6 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -563,7 +563,7 @@ static int cups_job_submit(int snum, struct printjob *pjob) *response = NULL; /* IPP Response */ cups_lang_t *language = NULL; /* Default language */ char uri[HTTP_MAX_URI]; /* printer-uri attribute */ - char *clientname = NULL; /* hostname of client for job-originating-host attribute */ + const char *clientname = NULL; /* hostname of client for job-originating-host attribute */ pstring new_jobname; int num_options = 0; cups_option_t *options = NULL; diff --git a/source3/printing/print_iprint.c b/source3/printing/print_iprint.c index f2b27460be..82095925b8 100644 --- a/source3/printing/print_iprint.c +++ b/source3/printing/print_iprint.c @@ -726,7 +726,7 @@ static int iprint_job_submit(int snum, struct printjob *pjob) ipp_attribute_t *attr; /* Current attribute */ cups_lang_t *language = NULL; /* Default language */ char uri[HTTP_MAX_URI]; /* printer-uri attribute */ - char *clientname = NULL; /* hostname of client for job-originating-host attribute */ + const char *clientname = NULL; /* hostname of client for job-originating-host attribute */ DEBUG(5,("iprint_job_submit(%d, %p (%d))\n", snum, pjob, pjob->sysjob)); @@ -782,7 +782,7 @@ static int iprint_job_submit(int snum, struct printjob *pjob) if (strcmp(clientname, "UNKNOWN") == 0) { clientname = client_addr(); } - + ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-originating-host-name", NULL, clientname); |