Changes of Revision 299
libosmocore.spec
Changed
x
1
2
3
Name: libosmocore
4
Requires: osmocom-master
5
-Version: 1.9.0.120.9b1e
6
+Version: 1.9.0.122.0265
7
Release: 0
8
Summary: The Open Source Mobile Communications Core Library
9
License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND AGPL-3.0-or-later
10
Group: Productivity/Telephony/Utilities
11
Url: https://osmocom.org/projects/libosmocore/wiki/Libosmocore
12
-Source: libosmocore_1.9.0.120.9b1e.tar.xz
13
+Source: libosmocore_1.9.0.122.0265.tar.xz
14
Source1: rpmlintrc
15
BuildRequires: automake >= 1.6
16
BuildRequires: libtool >= 2
17
commit_026551eced6d0b19e7fd0650216204051d0cd739.txt
Added
commit_9b1e22d8d5148c66f1bc756806b5153d0f588eee.txt
Deleted
libosmocore_1.9.0.120.9b1e.dsc -> libosmocore_1.9.0.122.0265.dsc
Changed
22
1
2
Source: libosmocore
3
Binary: libosmocore, libosmocodec4, libosmocodec-doc, libosmocoding0, libosmocoding-doc, libosmocore21, libosmocore-doc, libosmogb14, libosmogb-doc, libosmogsm20, libosmogsm-doc, libosmoisdn0, libosmoisdn-doc, libosmovty13, libosmovty-doc, libosmoctrl0, libosmoctrl-doc, libosmosim2, libosmosim-doc, libosmousb0, libosmousb-doc, libosmocore-dev, libosmocore-utils, libosmocore-dbg
4
Architecture: any all
5
-Version: 1.9.0.120.9b1e
6
+Version: 1.9.0.122.0265
7
Maintainer: Osmocom team <openbsc@lists.osmocom.org>
8
Homepage: https://projects.osmocom.org/projects/libosmocore
9
Standards-Version: 3.9.8
10
11
libosmovty-doc deb doc optional arch=all
12
libosmovty13 deb libs optional arch=any
13
Checksums-Sha1:
14
- a4b6f461badaf68a16c4802438585b324e073379 1093648 libosmocore_1.9.0.120.9b1e.tar.xz
15
+ 7fcc118feaccc3cc79e0403eace56d95482b1f36 1093340 libosmocore_1.9.0.122.0265.tar.xz
16
Checksums-Sha256:
17
- c8bebfaaa0ab12d4e3c6866b4e43de6cc7809d85b49ec2131c920f7f687d5c94 1093648 libosmocore_1.9.0.120.9b1e.tar.xz
18
+ 5e47285cc2b994bd129fcb2aeaef2a733fea8c4b6752a674e2946ca8f11fb42a 1093340 libosmocore_1.9.0.122.0265.tar.xz
19
Files:
20
- 0339f95ff838f7eeab7b7311c24050ad 1093648 libosmocore_1.9.0.120.9b1e.tar.xz
21
+ 88870f3e8548ab0f8395044343ab3def 1093340 libosmocore_1.9.0.122.0265.tar.xz
22
libosmocore_1.9.0.120.9b1e.tar.xz/.tarball-version -> libosmocore_1.9.0.122.0265.tar.xz/.tarball-version
Changed
4
1
2
-1.9.0.120-9b1e
3
+1.9.0.122-0265
4
libosmocore_1.9.0.120.9b1e.tar.xz/debian/changelog -> libosmocore_1.9.0.122.0265.tar.xz/debian/changelog
Changed
12
1
2
-libosmocore (1.9.0.120.9b1e) unstable; urgency=medium
3
+libosmocore (1.9.0.122.0265) unstable; urgency=medium
4
5
* Automatically generated changelog entry for building the Osmocom master feed
6
7
- -- Osmocom OBS scripts <info@osmocom.org> Fri, 05 Jan 2024 08:36:05 +0000
8
+ -- Osmocom OBS scripts <info@osmocom.org> Fri, 05 Jan 2024 15:42:18 +0000
9
10
libosmocore (1.9.0) unstable; urgency=medium
11
12
libosmocore_1.9.0.120.9b1e.tar.xz/src/gsm/gsm0808_utils.c -> libosmocore_1.9.0.122.0265.tar.xz/src/gsm/gsm0808_utils.c
Changed
84
1
2
{ 0, NULL }
3
};
4
5
-#define APPEND_THING(func, args...) do { \
6
- int remain = buflen - (pos - buf); \
7
- int l = func(pos, remain, ##args); \
8
- if (l < 0 || l > remain) \
9
- pos = buf + buflen; \
10
- else \
11
- pos += l; \
12
- if (l > 0) \
13
- total_len += l; \
14
- } while(0)
15
-#define APPEND_STR(fmt, args...) APPEND_THING(snprintf, fmt, ##args)
16
-#define APPEND_CELL_ID_U(DISCR, U) APPEND_THING(gsm0808_cell_id_u_name, DISCR, U)
17
-
18
char *gsm0808_cell_id_name_buf(char *buf, size_t buflen, const struct gsm0808_cell_id *cid)
19
{
20
- char *pos = buf;
21
- int total_len = 0;
22
- APPEND_STR("%s:", gsm0808_cell_id_discr_name(cid->id_discr));
23
- APPEND_CELL_ID_U(cid->id_discr, &cid->id);
24
+ struct osmo_strbuf sb = { .buf = buf, .len = buflen };
25
+
26
+ OSMO_STRBUF_PRINTF(sb, "%s:", gsm0808_cell_id_discr_name(cid->id_discr));
27
+ OSMO_STRBUF_APPEND(sb, gsm0808_cell_id_u_name, cid->id_discr, &cid->id);
28
return buf;
29
}
30
31
32
*/
33
int gsm0808_cell_id_list_name_buf(char *buf, size_t buflen, const struct gsm0808_cell_id_list2 *cil)
34
{
35
- char *pos = buf;
36
- int total_len = 0;
37
- int i;
38
+ struct osmo_strbuf sb = { .buf = buf, .len = buflen };
39
40
- APPEND_STR("%s%u", gsm0808_cell_id_discr_name(cil->id_discr), cil->id_list_len);
41
+ OSMO_STRBUF_PRINTF(sb, "%s%u",
42
+ gsm0808_cell_id_discr_name(cil->id_discr),
43
+ cil->id_list_len);
44
45
switch (cil->id_discr) {
46
case CELL_IDENT_BSS:
47
case CELL_IDENT_NO_CELL:
48
- return total_len;
49
+ return sb.chars_needed;
50
default:
51
break;
52
}
53
54
- APPEND_STR(":{");
55
+ OSMO_STRBUF_PRINTF(sb, ":{");
56
57
- for (i = 0; i < cil->id_list_len; i++) {
58
+ for (unsigned int i = 0; i < cil->id_list_len; i++) {
59
if (i)
60
- APPEND_STR(", ");
61
- APPEND_CELL_ID_U(cil->id_discr, &cil->id_listi);
62
+ OSMO_STRBUF_PRINTF(sb, ", ");
63
+ OSMO_STRBUF_APPEND(sb, gsm0808_cell_id_u_name,
64
+ cil->id_discr, &cil->id_listi);
65
}
66
67
- APPEND_STR("}");
68
- return total_len;
69
+ OSMO_STRBUF_PRINTF(sb, "}");
70
+ return sb.chars_needed;
71
}
72
73
/*! Return a human-readable representation of \a cil in a static buffer.
74
75
return buf;
76
}
77
78
-#undef APPEND_STR
79
-#undef APPEND_CELL_ID_U
80
-
81
char *gsm0808_channel_type_name_buf(char *buf, size_t buf_len, const struct gsm0808_channel_type *ct)
82
{
83
snprintf(buf, buf_len, "ch_indctr=0x%x ch_rate_type=0x%x perm_spch=%s",
84
libosmocore_1.9.0.120.9b1e.tar.xz/src/vty/utils.c -> libosmocore_1.9.0.122.0265.tar.xz/src/vty/utils.c
Changed
9
1
2
if (ret < 0)
3
goto err;
4
OSMO_SNPRINTF_RET(ret, rem, offset, len);
5
+ (void)len; /* suppress warnings about len being set but not used */
6
err:
7
strsize-1 = '\0';
8
return str;
9