- default:
- report(stderr, GT_("Unknown ODMR error %d\n"), atoi(buf));
- return(PS_PROTOCOL);
+ default: {
+ char *t = sdump(buf, strlen(buf));
+ report(stderr, GT_("Unknown ODMR error \"%s\"\n"), t);
+ xfree(t);
+ return(PS_PROTOCOL);
+ }
* instead, we'll use select(2) to watch the read sides of both
* sockets and just throw their data at each other.
*/
* instead, we'll use select(2) to watch the read sides of both
* sockets and just throw their data at each other.
*/
NULL, /* no message trailer */
NULL, /* how to delete a message */
NULL, /* how to mark a message as seen */
NULL, /* no message trailer */
NULL, /* how to delete a message */
NULL, /* how to mark a message as seen */
odmr_logout, /* log out, we're done */
FALSE, /* no, we can't re-poll */
};
odmr_logout, /* log out, we're done */
FALSE, /* no, we can't re-poll */
};