FD_ZERO(&input);
FD_SET(device_fd, &input);
-#ifdef __hpux
- if (select(device_fd + 1, (int *)&input, NULL, NULL, &timeout) > 0)
-#else
if (select(device_fd + 1, &input, NULL, NULL, &timeout) > 0)
-#endif /* __hpux */
{
/*
* Grab the data coming back and spit it out to stderr...
strlcpy(data.username, username, sizeof(data.username));
strlcpy(data.password, password, sizeof(data.password));
-# ifdef __sun
+# if defined(__sun) || defined(__hpux)
pamdata.conv = (int (*)(int, struct pam_message **,
struct pam_response **,
void *))pam_func;
# else
pamdata.conv = pam_func;
-# endif /* __sun */
+# endif /* __sun || __hpux */
pamdata.appdata_ptr = &data;
# ifdef __hpux
* 'free_banners()' - Free all banners.
*/
-void
+static void
free_banners(void)
{
cupsd_banner_t *temp; /* Current banner */
* 'add_quota()' - Add a quota record for this printer and user.
*/
-cupsd_quota_t * /* O - Quota data */
+static cupsd_quota_t * /* O - Quota data */
add_quota(cupsd_printer_t *p, /* I - Printer */
const char *username) /* I - User */
{
* 'find_quota()' - Find a quota record.
*/
-cupsd_quota_t * /* O - Quota data */
+static cupsd_quota_t * /* O - Quota data */
find_quota(cupsd_printer_t *p, /* I - Printer */
const char *username) /* I - User */
{