poldek: poldek/capreq.h, poldek/capreq.c - constant cmp*() args
mis
mis at pld-linux.org
Wed Jan 23 16:01:01 CET 2008
Author: mis Date: Wed Jan 23 15:01:01 2008 GMT
Module: poldek Tag: HEAD
---- Log message:
- constant cmp*() args
---- Files affected:
poldek/poldek:
capreq.h (1.34 -> 1.35) , capreq.c (1.46 -> 1.47)
---- Diffs:
================================================================
Index: poldek/poldek/capreq.h
diff -u poldek/poldek/capreq.h:1.34 poldek/poldek/capreq.h:1.35
--- poldek/poldek/capreq.h:1.34 Tue Jan 22 12:23:08 2008
+++ poldek/poldek/capreq.h Wed Jan 23 16:00:55 2008
@@ -115,11 +115,11 @@
struct capreq *capreq_clone(tn_alloc *na, const struct capreq *cr);
-int capreq_strcmp_evr(struct capreq *pr1, struct capreq *pr2);
-int capreq_strcmp_name_evr(struct capreq *pr1, struct capreq *pr2);
+int capreq_strcmp_evr(const struct capreq *pr1, const struct capreq *pr2);
+int capreq_strcmp_name_evr(const struct capreq *pr1, const struct capreq *pr2);
-int capreq_cmp_name(struct capreq *cr1, struct capreq *cr2);
-int capreq_cmp_name_evr(struct capreq *cr1, struct capreq *cr2);
+int capreq_cmp_name(const struct capreq *cr1, const struct capreq *cr2);
+int capreq_cmp_name_evr(const struct capreq *cr1, const struct capreq *cr2);
#ifndef SWIG
tn_array *capreq_arr_new(int size);
================================================================
Index: poldek/poldek/capreq.c
diff -u poldek/poldek/capreq.c:1.46 poldek/poldek/capreq.c:1.47
--- poldek/poldek/capreq.c:1.46 Thu Jul 12 23:29:26 2007
+++ poldek/poldek/capreq.c Wed Jan 23 16:00:55 2008
@@ -92,19 +92,19 @@
__inline__
-int capreq_cmp_name(struct capreq *cr1, struct capreq *cr2)
+int capreq_cmp_name(const struct capreq *cr1, const struct capreq *cr2)
{
return strcmp(capreq_name(cr1), capreq_name(cr2));
}
__inline__ static
-int capreq_cmp2name(struct capreq *cr1, const char *name)
+int capreq_cmp2name(const struct capreq *cr1, const char *name)
{
return strcmp(capreq_name(cr1), name);
}
__inline__ static
-int capreq_cmp_evr(struct capreq *cr1, struct capreq *cr2)
+int capreq_cmp_evr(const struct capreq *cr1, const struct capreq *cr2)
{
register int rc;
@@ -127,7 +127,7 @@
}
__inline__
-int capreq_cmp_name_evr(struct capreq *cr1, struct capreq *cr2)
+int capreq_cmp_name_evr(const struct capreq *cr1, const struct capreq *cr2)
{
register int rc;
@@ -138,7 +138,7 @@
}
__inline__
-int capreq_strcmp_evr(struct capreq *cr1, struct capreq *cr2)
+int capreq_strcmp_evr(const struct capreq *cr1, const struct capreq *cr2)
{
register int rc;
@@ -156,7 +156,7 @@
}
__inline__
-int capreq_strcmp_name_evr(struct capreq *cr1, struct capreq *cr2)
+int capreq_strcmp_name_evr(const struct capreq *cr1, const struct capreq *cr2)
{
register int rc;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/poldek/poldek/capreq.h?r1=1.34&r2=1.35&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/poldek/poldek/capreq.c?r1=1.46&r2=1.47&f=u
More information about the pld-cvs-commit
mailing list