Skip to content

Commit 48230f3

Browse files
authored
Update license headers in C files (#693)
## Type of Change - [x] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation update ## Motivation and Context There was a duplicated and outdated license header in some files. ## Testing - [x] Tested locally - [ ] Added/updated tests - [ ] Added/updated docs
1 parent ffc1195 commit 48230f3

38 files changed

+21
-120
lines changed

Sources/CVersion/Version.c

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,18 @@
1-
/*
2-
* Copyright © 2025 Apple Inc. and the container project authors. All rights reserved.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
171
//===----------------------------------------------------------------------===//
2+
// Copyright © 2025 Apple Inc. and the container project authors. All rights reserved.
183
//
19-
// This source file is part of the container open source project
20-
//
21-
// Copyright (c) 2025 Apple Inc. and the container project authors
22-
// Licensed under Apache License v2.0
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
237
//
24-
// See LICENSE.txt for license information
25-
// See CONTRIBUTORS.md for the list of container project authors
26-
//
27-
// SPDX-License-Identifier: Apache-2.0
8+
// https://www.apache.org/licenses/LICENSE-2.0
289
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
2915
//===----------------------------------------------------------------------===//
30-
//
3116

3217
#include "Version.h"
3318

Sources/CVersion/include/Version.h

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,17 @@
1-
/*
2-
* Copyright © 2025 Apple Inc. and the container project authors. All rights reserved.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
171
//===----------------------------------------------------------------------===//
2+
// Copyright © 2025 Apple Inc. and the container project authors. All rights reserved.
183
//
19-
// This source file is part of the container open source project
20-
//
21-
// Copyright (c) 2025 Apple Inc. and the container project authors
22-
// Licensed under Apache License v2.0
23-
//
24-
// See LICENSE.txt for license information
25-
// See CONTRIBUTORS.md for the list of container project authors
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
267
//
27-
// SPDX-License-Identifier: Apache-2.0
8+
// https://www.apache.org/licenses/LICENSE-2.0
289
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
2915
//===----------------------------------------------------------------------===//
3016

3117
#ifndef CZ_VERSION

Sources/ContainerCommands/Application.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// limitations under the License.
1515
//===----------------------------------------------------------------------===//
1616

17-
//
18-
1917
import ArgumentParser
2018
import ContainerClient
2119
import ContainerLog

Sources/ContainerCommands/Codable+JSON.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// limitations under the License.
1515
//===----------------------------------------------------------------------===//
1616

17-
//
18-
1917
import Foundation
2018

2119
extension [any Codable] {

Sources/ContainerCommands/Container/ProcessUtils.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// limitations under the License.
1515
//===----------------------------------------------------------------------===//
1616

17-
//
18-
1917
import ContainerClient
2018
import Containerization
2119
import ContainerizationError

Sources/ContainerLog/OSLogHandler.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// limitations under the License.
1515
//===----------------------------------------------------------------------===//
1616

17-
//
18-
1917
import Foundation
2018
import Logging
2119
import os

Sources/ContainerLog/StderrLogHandler.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// limitations under the License.
1515
//===----------------------------------------------------------------------===//
1616

17-
//
18-
1917
import Foundation
2018
import Logging
2119

Sources/ContainerPlugin/Plugin.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// limitations under the License.
1515
//===----------------------------------------------------------------------===//
1616

17-
//
18-
1917
import Foundation
2018

2119
/// Value type that contains the plugin configuration, the parsed name of the

Sources/ContainerPlugin/PluginFactory.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// limitations under the License.
1515
//===----------------------------------------------------------------------===//
1616

17-
//
18-
1917
import Foundation
2018

2119
private let configFilename: String = "config.json"

Sources/DNSServer/Types.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// limitations under the License.
1515
//===----------------------------------------------------------------------===//
1616

17-
//
18-
1917
import DNS
2018
import Foundation
2119

0 commit comments

Comments
 (0)