diff options
Diffstat (limited to 'ktalkd/ktalkd/repairs.c')
-rw-r--r-- | ktalkd/ktalkd/repairs.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/ktalkd/ktalkd/repairs.c b/ktalkd/ktalkd/repairs.c index 9473a473..98804c17 100644 --- a/ktalkd/ktalkd/repairs.c +++ b/ktalkd/ktalkd/repairs.c @@ -140,34 +140,34 @@ static int probe_otalk_packet(char *buf, size_t len, size_t maxlen, struct otalk_packet otp; CTL_MSG m; - ktalk_debug("Probing for QUIRK_OTALK\n"); + ktalk_debug("Probing for TQUIRK_OTALK\n"); if (sizeof(otp)!=OTALK_PACKET_SIZE) { - syslog(LOG_ERR, "QUIRK_OTALK: struct otalk_packet padding " + syslog(LOG_ERR, "TQUIRK_OTALK: struct otalk_packet padding " "is wrong\n"); return -1; } if (len!=sizeof(otp)) { - ktalk_debug("QUIRK_OTALK: wrong size\n"); + ktalk_debug("TQUIRK_OTALK: wrong size\n"); return -1; } memcpy(&otp, buf, len); if (probe_string(otp.l_name, sizeof(otp.l_name))) { - ktalk_debug("QUIRK_OTALK: l_name not a string\n"); + ktalk_debug("TQUIRK_OTALK: l_name not a string\n"); return -1; } if (probe_string(otp.r_name, sizeof(otp.r_name))) { - ktalk_debug("QUIRK_OTALK: r_name not a string\n"); + ktalk_debug("TQUIRK_OTALK: r_name not a string\n"); return -1; } if (probe_string(otp.r_tty, sizeof(otp.r_tty))) { - ktalk_debug("QUIRK_OTALK: r_tty not a string\n"); + ktalk_debug("TQUIRK_OTALK: r_tty not a string\n"); return -1; } if (probe_addr(&otp.ctl_addr, sn)) { - ktalk_debug("QUIRK_OTALK: addresses do not match\n"); + ktalk_debug("TQUIRK_OTALK: addresses do not match\n"); return -1; } @@ -182,17 +182,17 @@ static int probe_otalk_packet(char *buf, size_t len, size_t maxlen, case OLD_AUTO_LOOK_UP: otp.type = LOOK_UP; break; case OLD_AUTO_DELETE: otp.type = DELETE; break; default: - ktalk_debug("QUIRK_OTALK: invalid type field\n"); + ktalk_debug("TQUIRK_OTALK: invalid type field\n"); return -1; } if (OLD_NAME_SIZE >= NAME_SIZE) { - syslog(LOG_ERR, "QUIRK_OTALK: OLD_NAME_SIZE >= NAME_SIZE\n"); - syslog(LOG_ERR, "QUIRK_OTALK: fix repairs.c and recompile\n"); + syslog(LOG_ERR, "TQUIRK_OTALK: OLD_NAME_SIZE >= NAME_SIZE\n"); + syslog(LOG_ERR, "TQUIRK_OTALK: fix repairs.c and recompile\n"); return -1; } if (maxlen < sizeof(CTL_MSG)) { - syslog(LOG_ERR, "QUIRK_OTALK: maxlen too small; enlarge " + syslog(LOG_ERR, "TQUIRK_OTALK: maxlen too small; enlarge " "inbuf[] in talkd.c and recompile\n"); return -1; } @@ -219,7 +219,7 @@ static size_t do_otalk_reply(char *buf, size_t maxlen) { struct otalk_reply or; CTL_RESPONSE *r = (CTL_RESPONSE *)buf; if (sizeof(or) > maxlen) { - syslog(LOG_ERR, "QUIRK_OTALK: reply: maxlen too small; " + syslog(LOG_ERR, "TQUIRK_OTALK: reply: maxlen too small; " "enlarge buf[] in send_packet and recompile\n"); return sizeof(CTL_RESPONSE); } @@ -256,8 +256,8 @@ rationalize_packet(char *buf, size_t len, size_t mlen, struct sockaddr_in *sn) ktalk_debug("Malformed packet (length %u)\n", len); if (probe_otalk_packet(buf, len, mlen, sn)==0) { - ktalk_debug("Using QUIRK_OTALK\n"); - return QUIRK_OTALK; + ktalk_debug("Using TQUIRK_OTALK\n"); + return TQUIRK_OTALK; } return -1; } @@ -266,8 +266,8 @@ size_t irrationalize_reply(char *buf, size_t maxlen, int quirk) { switch (quirk) { - case QUIRK_NONE: return sizeof(CTL_RESPONSE); - case QUIRK_OTALK: return do_otalk_reply(buf, maxlen); + case TQUIRK_NONE: return sizeof(CTL_RESPONSE); + case TQUIRK_OTALK: return do_otalk_reply(buf, maxlen); } /* ? */ return 0; |