~ubuntu-branches/ubuntu/trusty/postfix/trusty-updates

« back to all changes in this revision

Viewing changes to src/util/unix_trigger.c

Tags: upstream-2.3.1
ImportĀ upstreamĀ versionĀ 2.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
/*      int     unix_trigger(service, buf, len, timeout)
10
10
/*      const char *service;
11
11
/*      const char *buf;
12
 
/*      int     len;
 
12
/*      ssize_t len;
13
13
/*      int     timeout;
14
14
/* DESCRIPTION
15
15
/*      unix_trigger() wakes up the named UNIX-domain server by making
70
70
static void unix_trigger_event(int event, char *context)
71
71
{
72
72
    struct unix_trigger *up = (struct unix_trigger *) context;
73
 
    static char *myname = "unix_trigger_event";
 
73
    static const char *myname = "unix_trigger_event";
74
74
 
75
75
    /*
76
76
     * Disconnect.
87
87
 
88
88
/* unix_trigger - wakeup UNIX-domain server */
89
89
 
90
 
int     unix_trigger(const char *service, const char *buf, int len, int timeout)
 
90
int     unix_trigger(const char *service, const char *buf, ssize_t len, int timeout)
91
91
{
92
 
    char   *myname = "unix_trigger";
 
92
    const char *myname = "unix_trigger";
93
93
    struct unix_trigger *up;
94
94
    int     fd;
95
95