X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fheaders%2Fsig_op.h;h=6bb81c2af8edc7a28b8054111f36fd662b0e2fd1;hp=e0178491fb99d3340665b8a2cce9192c90d7e243;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hpb=927951d1c1ad45ba9e7325f07d996154a91c911b diff --git a/src/headers/sig_op.h b/src/headers/sig_op.h old mode 100755 new mode 100644 index e017849..6bb81c2 --- a/src/headers/sig_op.h +++ b/src/headers/sig_op.h @@ -1,6 +1,3 @@ -/* @(#) $Id: ./src/headers/sig_op.h, 2011/09/08 dcid Exp $ - */ - /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * @@ -10,21 +7,19 @@ * Foundation */ - -/* Functions to handle signal manipulation - */ +/* Functions to handle signal manipulation */ #ifndef __SIG_H - #define __SIG_H -void HandleSIG(); -void HandleSIGPIPE(); +void HandleSIG(int sig) __attribute__((noreturn)); +void HandleSIGPIPE(int sig); /* Start signal manipulation */ -void StartSIG(char *process_name); +void StartSIG(const char *process_name) __attribute__((nonnull)); /* Start signal manipulation -- function as an argument */ -void StartSIG2(char *process_name, void (*func)(int)); +void StartSIG2(const char *process_name, void (*func)(int)) __attribute__((nonnull)); #endif +