Procházet zdrojové kódy

list.h (list_empty): Make param const.

* include/corosync/list.h (list_empty): Make param const.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2015 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jim Meyering před 17 roky
rodič
revize
8f9fafedbf
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      include/corosync/list.h

+ 2 - 2
include/corosync/list.h

@@ -6,7 +6,7 @@
  * Author: Steven Dake (sdake@redhat.com)
  * Author: Steven Dake (sdake@redhat.com)
  *
  *
  * This software licensed under BSD license, the text of which follows:
  * This software licensed under BSD license, the text of which follows:
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
  * modification, are permitted provided that the following conditions are met:
  *
  *
@@ -79,7 +79,7 @@ static void inline list_del (struct list_head *remove)
 #define list_entry(ptr,type,member)\
 #define list_entry(ptr,type,member)\
 	((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
 	((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
 
 
-static inline int list_empty(struct list_head *l)
+static inline int list_empty(const struct list_head *l)
 {
 {
 	return l->next == l;
 	return l->next == l;
 }
 }