X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fheaders%2Fmq_op.h;h=b425c53c1eeb50dc3a0b1cf87ffa3ba45f84f35e;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=c7ef5ada0e185004f25065a035788a345c002e16;hpb=301048b51990573e58a30dc4a5bb4ec285cad554;p=ossec-hids.git diff --git a/src/headers/mq_op.h b/src/headers/mq_op.h old mode 100755 new mode 100644 index c7ef5ad..b425c53 --- a/src/headers/mq_op.h +++ b/src/headers/mq_op.h @@ -1,5 +1,3 @@ -/* @(#) $Id$ */ - /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * @@ -9,15 +7,14 @@ * Foundation */ - #ifndef _MQ__H #define _MQ__H /* Default queues */ -#define LOCALFILE_MQ '1' -#define SYSLOG_MQ '2' +#define LOCALFILE_MQ '1' +#define SYSLOG_MQ '2' #define HOSTINFO_MQ '3' -#define SECURE_MQ '4' +#define SECURE_MQ '4' #define SYSCHECK_MQ '8' #define ROOTCHECK_MQ '9' @@ -25,9 +22,9 @@ #define MYSQL_MQ 'a' #define POSTGRESQL_MQ 'b' +int StartMQ(const char *key, short int type) __attribute__((nonnull)); -int StartMQ(char * key, short int type); - -int SendMSG(int queue, char * message, char *locmsg, char loc); +int SendMSG(int queue, const char *message, const char *locmsg, char loc) __attribute__((nonnull)); #endif +