X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fheaders%2Fsig_op.h;h=6bb81c2af8edc7a28b8054111f36fd662b0e2fd1;hb=HEAD;hp=508fbb6908918831dfd609fde283c67d6ddaf3b7;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/headers/sig_op.h b/src/headers/sig_op.h old mode 100755 new mode 100644 index 508fbb6..6bb81c2 --- a/src/headers/sig_op.h +++ b/src/headers/sig_op.h @@ -1,29 +1,25 @@ -/* @(#) $Id: sig_op.h,v 1.6 2009/06/24 17:06:26 dcid Exp $ */ - /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * 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 +