aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rpcsfactory.cc
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2006-09-29 00:16:28 +0000
committerReuben Thomas <rrt@sc3d.org>2006-09-29 00:16:28 +0000
commit5c392c24398b95df09e474b15691d4159eb38efd (patch)
tree44c2a630ac0105dcca7ecc9e2c8b3d41197adb98 /lib/rpcsfactory.cc
parent65c2dbb6ae291536574e0066219921b70f593605 (diff)
downloadplptools-5c392c24398b95df09e474b15691d4159eb38efd.tar.gz
plptools-5c392c24398b95df09e474b15691d4159eb38efd.tar.bz2
plptools-5c392c24398b95df09e474b15691d4159eb38efd.zip
Fixes to compile on amd64 (plp_inttypes.h) and with gcc >= 4.1 (the
rest); patches from Debian bugs #384146, #386833 and #388831.
Diffstat (limited to 'lib/rpcsfactory.cc')
-rw-r--r--lib/rpcsfactory.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rpcsfactory.cc b/lib/rpcsfactory.cc
index 25a069c..68096f6 100644
--- a/lib/rpcsfactory.cc
+++ b/lib/rpcsfactory.cc
@@ -34,14 +34,14 @@
#include <stdlib.h>
#include <time.h>
-ENUM_DEFINITION(rpcsfactory::errs, rpcsfactory::FACERR_NONE) {
+ENUM_DEFINITION_BEGIN(rpcsfactory::errs, rpcsfactory::FACERR_NONE)
stringRep.add(rpcsfactory::FACERR_NONE, N_("no error"));
stringRep.add(rpcsfactory::FACERR_COULD_NOT_SEND, N_("could not send version request"));
stringRep.add(rpcsfactory::FACERR_AGAIN, N_("try again"));
stringRep.add(rpcsfactory::FACERR_NOPSION, N_("no psion connected"));
stringRep.add(rpcsfactory::FACERR_PROTVERSION, N_("wrong protocol version"));
stringRep.add(rpcsfactory::FACERR_NORESPONSE, N_("no response from ncpd"));
-}
+ENUM_DEFINITION_END(rpcsfactory::errs)
rpcsfactory::rpcsfactory(ppsocket *_skt)
{