public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: "Fabio M. Di Nitto" <fabbione@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: dlm: master - dlm: fix function prototypes
Date: Tue, 23 Jun 2009 08:21:00 -0000	[thread overview]
Message-ID: <20090623082048.6503412037D@lists.fedorahosted.org> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2049 bytes --]

Gitweb:        http://git.fedorahosted.org/git/dlm.git?p=dlm.git;a=commitdiff;h=f4829e75c41fc944e5c2777cd709eb63fb5ccf16
Commit:        f4829e75c41fc944e5c2777cd709eb63fb5ccf16
Parent:        f46c522f1994ce7308801f10d14f538e73178e8c
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Wed May 6 06:27:52 2009 +0200
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Jun 23 09:41:45 2009 +0200

dlm: fix function prototypes

cluster-stable3/dlm/libdlm/libdlm.h:223: warning: function declaration isn’t a prototype
cluster-stable3/dlm/libdlm/libdlm.h:225: warning: function declaration isn’t a prototype
cluster-stable3/dlm/libdlm/libdlm.c:248: warning: function declaration isn’t a prototype
cluster-stable3/dlm/libdlm/libdlm.c:1187: warning: function declaration isn’t a prototype

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 dlm/libdlm/libdlm.c |    4 ++--
 dlm/libdlm/libdlm.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlm/libdlm/libdlm.c b/dlm/libdlm/libdlm.c
index 03f4664..823bb84 100644
--- a/dlm/libdlm/libdlm.c
+++ b/dlm/libdlm/libdlm.c
@@ -246,7 +246,7 @@ static int ls_pthread_cleanup(struct dlm_ls_info *lsinfo)
 }
 
 /* Cleanup default lockspace */
-int dlm_pthread_cleanup()
+int dlm_pthread_cleanup(void)
 {
     struct dlm_ls_info *lsinfo = default_ls;
 
@@ -1185,7 +1185,7 @@ static void *dlm_recv_thread(void *lsinfo)
 }
 
 /* Multi-threaded callers normally use this */
-int dlm_pthread_init()
+int dlm_pthread_init(void)
 {
     if (open_default_lockspace())
 	return -1;
diff --git a/dlm/libdlm/libdlm.h b/dlm/libdlm/libdlm.h
index 8f977b5..17a552c 100644
--- a/dlm/libdlm/libdlm.h
+++ b/dlm/libdlm/libdlm.h
@@ -220,9 +220,9 @@ extern int dlm_ls_purge(dlm_lshandle_t lockspace,
  */
 
 #ifdef _REENTRANT
-extern int dlm_pthread_init();
+extern int dlm_pthread_init(void);
 extern int dlm_ls_pthread_init(dlm_lshandle_t lockspace);
-extern int dlm_pthread_cleanup();
+extern int dlm_pthread_cleanup(void);
 #endif
 
 


                 reply	other threads:[~2009-06-23  8:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090623082048.6503412037D@lists.fedorahosted.org \
    --to=fabbione@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).